Skip to content

Model objective has flux but status is infeasible #1266

Answered by cdiener
PkiwiBird asked this question in Q&A
Discussion options

You must be logged in to vote

That was somewhat intentional to allow users to inspect a solution if it is not optimal (see #688). Though, you should normally at least see a warning here.

Though, there is a special status for numerical instability ("numeric"). You are right that increasing the feasibility tolerance would allow for slight violations, however that is often not desired. Alternatively, you could try to explicitly set md.solver.configuration.presolve = True which can stabilize the model.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@PkiwiBird
Comment options

@cdiener
Comment options

Answer selected by cdiener
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants