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

cplex solver #1

Open
kavousisiavash opened this issue Jun 9, 2024 · 2 comments
Open

cplex solver #1

kavousisiavash opened this issue Jun 9, 2024 · 2 comments

Comments

@kavousisiavash
Copy link

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

@PacoAlgebra2
Copy link
Collaborator

PacoAlgebra2 commented Jun 10, 2024 via email

@kavousisiavash
Copy link
Author

kavousisiavash commented Jun 10, 2024 via email

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

2 participants