-
Notifications
You must be signed in to change notification settings - Fork 212
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
moma failures #65
Milestone
Comments
My output Python 2.7.3 (default, Sep 26 2013, 20:03:06)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from cobra.test import create_test_model
>>>
>>> model = create_test_model()
>>> from cobra.flux_analysis import single_deletion
>>> single_deletion(model, ['STM0247'], method='moma', solver='gurobi')
/home/aebrahim/cobrapy/cobra/flux_analysis/moma.py:63: UserWarning: moma currently does not support reusing models or problems. continuing without them
"continuing without them")
({'STM0247': 0.38000797000000003}, {'STM0247': 'optimal'}, {'STM0247': 'discarded'})
>>> single_deletion(model, ['STM0247'], method='moma', solver='cplex')
/home/aebrahim/cobrapy/cobra/flux_analysis/moma.py:161: UserWarning: optimal moma solution not found: solver status failed returning the problem, the_combined model, and the quadratic component for trouble shooting
' returning the problem, the_combined model, and the quadratic component for trouble shooting')
({'STM0247': nan}, {'STM0247': 'failed'}, {'STM0247': 'discarded'})
>>> import cobra; print cobra.__version__
0.3.0.dev-118-g09707d2 |
Thanks. It looks like it's an issue with cplex. I'll see if I can figure it out. I didn't have gurobi installed on my test machine so it defaulted to cplex. |
aebrahim
added a commit
that referenced
this issue
Mar 28, 2015
Implementation is now simpler, but still passes the same unit tests. This fixes #135 and #65. It is worth noting that at this point in time, CPLEX sometimes fails to find the optimal solution on difficult problems (although gurobi seems to hav no trouble). The optimal QP settings for CPLEX still need to be determined.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Somewhere in the last set up updates MOMA appears to have stopped functioning.
from cobra.test import create_test_model
model = create_test_model()
from cobra.flux_analysis import single_deletion
single_deletion(model, ['STM0247'], method='moma', solver='gurobi')
single_deletion(model, ['STM0247'], method='moma', solver='gurobi')
cplex 12.5
gurobi 5.5
0.3.0.dev-118-g09707d2
OS X 10.9.1
Python 2.7.5 (default, Aug 25 2013, 00:04:04)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Could somebody confirm that the failure happens on another OS?
The text was updated successfully, but these errors were encountered: