Display active inactive constraints with AMPL using CPLEX or Gurobi

469 views
Skip to first unread message

Vitali Pawelko

unread,
Sep 9, 2015, 7:40:28 AM9/9/15
to am...@googlegroups.com
Dear Sirs and Madams,

I am using AMPL and the two solvers CPLEX and Gurobi.
I know AMPL transmits all model constraints to the solver.
I am solving MILP and am interested in the constraints the solver really
needs and uses for the LP relaxation.

Is it possible to display the amount of all active (binding) constraints
and all inactive constraints? Does CPLEX and Gurobi have a smart Branch
and Cut solver and use the model constraints als lazy constraints?

I discovered all possible forum posts and book of ampl, guobi, cplex and
could not find any answer yet.

Thank you in advance.

Robert Fourer

unread,
Sep 10, 2015, 10:01:42 AM9/10/15
to am...@googlegroups.com
CPLEX and Gurobi have a feature for specifically labelling some constraints as lazy constraints; see the "lazy" option on these pages:

http://ampl.com/products/solvers/solvers-we-sell/cplex/options/
http://www.gurobi.com/documentation/6.0/ampl-gurobi/parameters.html

If you don't use this feature, however, then as far as I know these solvers use all of the constraints in the relaxations. Certainly there is no option to ask which constraints were not used.

Bob Fourer
am...@googlegroups.com
--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ampl+uns...@googlegroups.com.
To post to this group, send email to am...@googlegroups.com.
Visit this group at http://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages