Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  IloCplex::CplexStatus to IloAlgorithm::Status mapping

    Posted 09/25/12 10:27 AM

    Originally posted by: HC4F_Ibrahim_Karahan


    As far as I can see, interactive solver reports only CPLEX status (IloCplex::getCplexStatus() in C++ interface) in the exported .SOL file (solutionStatusValue field). Is there an easy way to map this value to Concert solution status (IloCplex::getStatus()), or can I have CPLEX report also this value in SOL file?

    Thanks,
    Ibrahim
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: IloCplex::CplexStatus to IloAlgorithm::Status mapping

    Posted 09/26/12 06:57 AM

    Originally posted by: SystemAdmin


    The function that does this mapping is IloCplexI::CplexToAlgorithmStatus() but unfortunately this function is private in the IloCplexI class. So there is no easy way to map the status.
    Why do you need the status of a solution? Depending on what information you want to derive from the status there may be other ways to find that information.
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: IloCplex::CplexStatus to IloAlgorithm::Status mapping

    Posted 09/26/12 11:06 AM

    Originally posted by: HC4F_Ibrahim_Karahan


    I am solving optimization problems inside a server application. There are some large problem instances which may cause CPLEX quit with out of memory exception, since server itself consumes lots of memory. Unfortunately I have to run in 32 bits. As a workaround in large problems, I export the model into a file, call standalone CPLEX executable to solve the problem and parse solution xml. Server's optimization routine returns Concert status codes but solution file only reports CPLEX output codes. It looks like I need to manually map these status codes.
    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: IloCplex::CplexStatus to IloAlgorithm::Status mapping

    Posted 10/01/12 10:45 AM

    Originally posted by: SystemAdmin


    Yes, you need to map the status manually. But as far as I understand you only need to distinguish two cases: "feasible but not optimal" and "feasible and optimal", right? So you only need to check whether the solutionStatusValue is 101 (optimal or not).
    #CPLEXOptimizers
    #DecisionOptimization