Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.

 View Only
  • 1.  CPLEX command prompt display satisfied constraints

    Posted Wed November 02, 2011 11:11 AM

    Originally posted by: Sarad


    hi,

    I am using the CPLEX solver from the windows commandline(DOS). Is there a way to identify from the CPLEX prompt the constraints that were a satisfied. For example, a flag set to 1 displayed next to the constraint name, if the particular constraint(s) were satisfied?

    Thank you.
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: CPLEX command prompt display satisfied constraints

    Posted Wed November 02, 2011 03:13 PM

    Originally posted by: SystemAdmin


    A successful solve (with either an optimal or feasible solution at the end), ensures that all the constraints in the model are satisfied (subject to the specified or inbuilt tolerances).
    If the solver is not able to satisfy even one constraint, then the whole model will be deemed infeasible.

    Are you experiencing a case where the solution is claimed to be feasible/optimal, but there exists some constraints in the model which are not being satisfied?
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: CPLEX command prompt display satisfied constraints

    Posted Wed November 02, 2011 10:41 PM

    Originally posted by: Sarad


    Thank you for your response.

    AbhishekRaman wrote:
    >A successful solve (with either an optimal or feasible solution at the end), ensures that all the constraints in the model are satisfied (subject to the specified or inbuilt tolerances).

    Yes, that is absolutely right. I needed some constraints satisfied for certain conditions and other constraints satisfied for other conditions but that is an implementation issue. As far as CPLEX is concerned all the constraints are satisfied. My apologies and thank you!
    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: CPLEX command prompt display satisfied constraints

    Posted Wed June 18, 2014 11:17 PM

    Originally posted by: HaipengXie


    Is it impossible to force the solver satisfy a certain constraint?


    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: CPLEX command prompt display satisfied constraints

    Posted Mon June 23, 2014 12:53 AM

    I don't understand the question. As explained in this thread the CPLEX solver will always satisfy all constraints. If there is no solution that satisfies all constraints simultaneously then the problem is infeasible and reported as such.

    Are you observing solutions that are claimed feasible but violate constraints? If constraints are only violated by a small amount then this may be due to numerical issues and you may have to tighten some tolerances.


    #CPLEXOptimizers
    #DecisionOptimization


  • 6.  Re: CPLEX command prompt display satisfied constraints

    Posted Thu November 03, 2011 02:12 AM

    Originally posted by: SystemAdmin


    As Abhishsek said, usually all constraints should be satisfied. However, there are cases in which a solution does not satisfy all constraints (and this is expected): feasopt, conflict refiner, time limit hits. In this case you can do
    display sol slack -
    

    which will show you the slack for each constraints. If a constraint is not satisfied then its slack is flagged by '**' in the output.
    #CPLEXOptimizers
    #DecisionOptimization


  • 7.  Re: CPLEX command prompt display satisfied constraints

    Posted Fri November 04, 2011 06:47 AM

    Originally posted by: Sarad


    Thank you.
    #CPLEXOptimizers
    #DecisionOptimization