CPLEX cannot handle QCP models with quadratic equality constraints.

816 views
Skip to first unread message

Raza Khan

unread,
Oct 21, 2013, 10:44:03 AM10/21/13
to ai...@googlegroups.com

Hi,

I am getting the following error message.

CPLEX error: CPLEX cannot handle QCP models with quadratic equality constraints.
Warning: Model status 13: Error no solution, Solver status 9: Error: Setup failure.

One of my constraint is as under:

(i,j)|i<>j
sum(v,PalletsDelivered(v,i,j)*VehicleUsed(v,i,j))+sum(v,PalletsPickedUP(v,j,i)*VehicleUsed(v,j,i))>=Demand(i,j)

Can someone please tell me how to solve this issue.

Kind regards,


Raza S. Khan

attia...@yahoo.com

unread,
Oct 21, 2013, 5:17:20 PM10/21/13
to ai...@googlegroups.com
Dear khan, 
Your model has the constraint you mentioned that has a polynomial of second order. So it is a quadratic constraint problem QCP. Use different solver other than CPLEX that can solve QCP

Regards,
Yosra

Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "AIMMS - The Modeling System" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aimms+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Marcel Hunting

unread,
Oct 22, 2013, 3:50:23 AM10/22/13
to ai...@googlegroups.com
Hi,

CPLEX can handle QCP models if its quadratic constraints have the format as shown in section SOCP in the AIMMS-CPLEX help.

The constraint that you are showing is not an equality constraint so the error message seems incorrect unless your model contains another quadratic constraint that is an equality. If that is not the case then we would like to investigate your project; could you then please send it to our support (or post it here)?

If VehicleUsed is a variable and either PalletsDelivered or PalletsPickedUP is a variable (or both) then the constraint shown is a quadratic constraint that cannot be handled by CPLEX.

Best regards,

Marcel Hunting
AIMMS Software Developer

Raza Khan

unread,
Oct 22, 2013, 8:22:52 AM10/22/13
to ai...@googlegroups.com
Hi,

VehiclesUsed, PalletsDelivered & PalletsPickekUP all are variables; whereas, Demand is a parameter. In case if CPLEX can't handle it then which other solver can be used to solve this problem. I have changed the solver but getting similar error messages.

Regards,


Raza Khan

Warning: Model status 13: Error no solution, Solver status 10: Error: Solver failure.
CPLEX error: CPLEX cannot handle QCP models with quadratic equality constraints.
Warning: Model status 13: Error no solution, Solver status 9: Error: Setup failure.

GUROBI error: GUROBI cannot handle QCP models with quadratic equality constraints
GUROBI error: 

MOSEK error: MOSEK cannot handle QCP models with equality constraints
Warning: After zero iterations MOSEK 6.0 concluded that MinimizeTotalVehicles is infeasible.

Marcel Hunting

unread,
Oct 22, 2013, 12:01:12 PM10/22/13
to ai...@googlegroups.com
Hi,

The model that you kindly sent us showed that the model indeed contains quadratic equality constraints. None of the linear solvers in AIMMS (CPLEX, Gurobi, Mosek) can handle quadratic equality constraints. The only solver currently supported by AIMMS that can handle these kind of constraints is the (global nonlinear) solver BARON.

However, after investigating your model it turned out that your problem can be formulated without using quadratic constraints.

Best regards,

Marcel

Ludwig Chincarini

unread,
Jul 24, 2014, 5:42:36 PM7/24/14
to ai...@googlegroups.com

Hi - I'm working on something similar with the need for a quadratic equality constraint - could you email me to discuss?  lbchin...@usfca.edu

Thanks,
LC

Marcel Hunting

unread,
Jul 25, 2014, 10:04:14 AM7/25/14
to ai...@googlegroups.com
Hi,

I am not sure whom should contact you but if you need help with AIMMS then the normal procedure is to post your question here or send an e-mail to our support.

Best regards,

Marcel Hunting
AIMMS
Reply all
Reply to author
Forward
0 new messages