Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  CPLEX Error "No Solution exists" and CPLEX status "infeasible"

    Posted 02/12/12 10:29 PM

    Originally posted by: waldstein


    Hi everybody,

    when I used c# to call cplex solver, I encountered a situation: when I called cplex for too many times, it returns an error named "no solution exists" and the algorithm terminated.

    My quesiton is: if cplex can not find a feasible solution, why doesn't it return a status "infeasible", which could be obtained by Cplex.GetStatus()?

    thanks!

    PS: I do not know whether it is a result of calling cplex solver too many times. It is just a phenomenon...
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: CPLEX Error "No Solution exists" and CPLEX status "infeasible"

    Posted 02/13/12 05:16 AM

    Originally posted by: SystemAdmin


    What is the status you see in this case?
    Note that Cplex.Solve() returns true if a feasible solution is available and false otherwise. This may be all you need?
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: CPLEX Error "No Solution exists" and CPLEX status "infeasible"

    Posted 02/13/12 07:37 AM

    Originally posted by: waldstein


    Daniel,

    thanks.

    my code is written as follows:

    try
    {
    if(cplex.Solve())
    {
    }
    else
    {
    }
    }
    catch
    {
    }

    if the model is infeasible, I thought the code would go to "else". But actually it went to "catch"...

    Would you please help me on that?
    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: CPLEX Error "No Solution exists" and CPLEX status "infeasible"

    Posted 02/13/12 10:47 AM

    Originally posted by: SystemAdmin


    That means that an error occurred during the solve. What is the message of the exception you get? That should give a hint about what went wrong.
    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: CPLEX Error "No Solution exists" and CPLEX status "infeasible"

    Posted 02/13/12 09:43 PM

    Originally posted by: waldstein


    I changed the branching rule and this situation no longer appears....
    Let me try to explore it and paste the relating message :)
    #CPLEXOptimizers
    #DecisionOptimization