-
Notifications
You must be signed in to change notification settings - Fork 0
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
cplex solver #1
Comments
This software uses cobrapy and requires a solver to perform any tasks (see https://cobrapy.readthedocs.io/en/latest/). We use cplex as the default solver, but it can also use gurobi or glpk. If it does not find an available installation on your system, it may produce unexpected results. Hope this helps!
Paco
…________________________________
De: kavousisiavash ***@***.***>
Enviado: domingo, 9 de junio de 2024 16:30
Para: biogacop/enhancing_gMCS ***@***.***>
Cc: Subscribed ***@***.***>
Asunto: [biogacop/enhancing_gMCS] cplex solver (Issue #1)
Hello . I am reading your wonderful work and also trying to implement the codes.
but on the line
cobra.Configuration().solver="cplex"
I get this error
SolverNotFound: 'cplex' is not a valid solver interface. Please pick one from glpk_exact, glpk, scipy.
And finally, the result from this code is different !
name0="L363"
extension="xml"
for i in range(len(task)):
print()
print("Task",i)
if i<len(task)-1:
try:
createModeloTarea(modelo,i,False)
except:
print("No puede",i)
otherwise:
try:
createModeloTareaHam(modelo,i,False)
except:
print("No puede",i)
Is the first error related to this different result?
No puede 50
Task 51
No puede 51
Task 52
No puede 52
Task 53
No puede 53
Task 54
No puede 54
Task 55
and how i can solve it ?
thank you
—
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https://github.com/biogacop/enhancing_gMCS/issues/1__;!!D9dNQwwGXtA!RqTXLiyNSyzfTXTMmqRFWXpw_1vvsMmLTQGwYqNITc8wWLzRYux0WvinoP07dhFAR6rjfTTDYmIPJMDR2MBB$>, or unsubscribe<https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AEOG5H2K2CRCO4CWMJ7G4XTZGRRIVAVCNFSM6AAAAABJA57PI6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGM2DEMZQGM4DGNI__;!!D9dNQwwGXtA!RqTXLiyNSyzfTXTMmqRFWXpw_1vvsMmLTQGwYqNITc8wWLzRYux0WvinoP07dhFAR6rjfTTDYmIPJH4H2alY$>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Thank you very much.
در تاریخ دوشنبه ۱۰ ژوئن ۲۰۲۴، ۱۲:۰۶ BioGacop2 ***@***.***>
نوشت:
… This software uses cobrapy and requires a solver to perform any tasks (see
https://cobrapy.readthedocs.io/en/latest/). We use cplex as the default
solver, but it can also use gurobi or glpk. If it does not find an
available installation on your system, it may produce unexpected results.
Hope this helps!
Paco
________________________________
De: kavousisiavash ***@***.***>
Enviado: domingo, 9 de junio de 2024 16:30
Para: biogacop/enhancing_gMCS ***@***.***>
Cc: Subscribed ***@***.***>
Asunto: [biogacop/enhancing_gMCS] cplex solver (Issue #1)
Hello . I am reading your wonderful work and also trying to implement the
codes.
but on the line
cobra.Configuration().solver="cplex"
I get this error
SolverNotFound: 'cplex' is not a valid solver interface. Please pick one
from glpk_exact, glpk, scipy.
And finally, the result from this code is different !
name0="L363"
extension="xml"
for i in range(len(task)):
print()
print("Task",i)
if i<len(task)-1:
try:
createModeloTarea(modelo,i,False)
except:
print("No puede",i)
otherwise:
try:
createModeloTareaHam(modelo,i,False)
except:
print("No puede",i)
Is the first error related to this different result?
No puede 50
Task 51
No puede 51
Task 52
No puede 52
Task 53
No puede 53
Task 54
No puede 54
Task 55
and how i can solve it ?
thank you
—
Reply to this email directly, view it on GitHub<
https://urldefense.com/v3/__https://github.com/biogacop/enhancing_gMCS/issues/1__;!!D9dNQwwGXtA!RqTXLiyNSyzfTXTMmqRFWXpw_1vvsMmLTQGwYqNITc8wWLzRYux0WvinoP07dhFAR6rjfTTDYmIPJMDR2MBB$>,
or unsubscribe<
https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AEOG5H2K2CRCO4CWMJ7G4XTZGRRIVAVCNFSM6AAAAABJA57PI6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGM2DEMZQGM4DGNI__;!!D9dNQwwGXtA!RqTXLiyNSyzfTXTMmqRFWXpw_1vvsMmLTQGwYqNITc8wWLzRYux0WvinoP07dhFAR6rjfTTDYmIPJH4H2alY$>.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
—
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BA2RYHA42UZB4KXHYNBKAXDZGVQPXAVCNFSM6AAAAABJA57PI6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJXG4YTEOBUG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello . I am reading your wonderful work and also trying to implement the codes.
but on the line
cobra.Configuration().solver="cplex"
I get this error
SolverNotFound: 'cplex' is not a valid solver interface. Please pick one from glpk_exact, glpk, scipy.
And finally, the result from this code is different !
name0="L363"
extension="xml"
for i in range(len(task)):
print()
print("Task",i)
if i<len(task)-1:
try:
createModeloTarea(modelo,i,False)
except:
print("No puede",i)
otherwise:
try:
createModeloTareaHam(modelo,i,False)
except:
print("No puede",i)
Is the first error related to this different result?
No puede 50
Task 51
No puede 51
Task 52
No puede 52
Task 53
No puede 53
Task 54
No puede 54
Task 55
and how i can solve it ?
thank you
The text was updated successfully, but these errors were encountered: