Closed lbugnon closed 7 months ago
Hi, your problem is not convex, so there are no reduced costs which triggers the error. We could maybe raise a better error or return only the primal values in optlang if those are available. But non-convex optimization is not supported well in cobrapy at the moment.
Great thank you!
That's actually a similar problem to what I already had: https://github.com/opencobra/cobrapy/issues/1372#issue-2098982839 I looked into the code and have a general idea on how to tackle this. I think it would be the best to have a default case which is executed if shadow prices and/or reduced costs can't be accessed. This is relatively ease to mitigate, so I will make a PR soon which introduces better error handling.
Is there an existing issue for this?
Problem description
I'm trying to optimize a model flux product (fluxA*fluxB). Gurobi rises error "GurobiError: Unable to retrieve attribute 'RC'". If its not a bug, a hint in documentation would be nice
Code sample
Environment
Anything else?
No response