Anas
Anas

Reputation: 29

Is it possible to view the constraints while using docplex?

I have a quadratic model which I wrote using docplex and when solving it says it is infeasible. When I checked to see if there are any conflicts it returned 0 so I assume there are none but I have no idea what is causing this problem. I want to be able to view the constraints like you can do in LINGO (CTRL+G). Also, is there any other way of solving a quadratic program using python with proper documentation to make it easier?

Upvotes: 0

Views: 338

Answers (1)

Alex Fleischer
Alex Fleischer

Reputation: 10062

have you also checked the relaxations ? Have you tried to solve the same model but without the objective and then you will see that you have some issues with the objective ?

If the model is the same as the one you shared at Why doesn't my CPLEX API solve the problem? have you tried to have a look at the relaxations ?

With CPLEX you may also try to use OPL for quadratic models which may be easier for debugging. There conflicts and relaxations will directly appear when your model is not feasible.

Upvotes: 0

Related Questions