Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide sensible error handling for FVA when original problem is infeasible #12

Open
yaccos opened this issue May 2, 2022 · 0 comments

Comments

@yaccos
Copy link

yaccos commented May 2, 2022

I have worked on an ensamble of model for which I wanted to do FVA. However, my analysis failed with the error message TypeError: unsupported operand type(s) for *: 'float' and 'NoneType' (

_constraints[target] = (obj_frac * solution.fobj, inf)
). I assume the error is caused by the model not being feasible such that solution.fobj is None. I would expect the FVA function to specifically check for such cases and provide a sensible error message or return a sentinent value in such cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant