Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Processor stucks

    Posted 04/03/18 01:54 PM

    Originally posted by: imanopl


    Hello everyone,

     

    I have a code in c++ concert. Whenever I try to model a scheduling problem using CP; however when it goes into cp.solve() it does not go to next command without any error. What are potential issues of such cases?

     

    Thank you


    #DecisionOptimization
    #OPLusingCPOptimizer


  • 2.  Re: Processor stucks

    Posted 04/05/18 12:06 PM

    Originally posted by: ChrisBr


    Hello Iman,

    It's very difficult to make an hypothesis about what could happen without more information.
    Could you give us your model? (you can export it and give us the generated .cpo).

    Regards,

    Chris.


    #DecisionOptimization
    #OPLusingCPOptimizer


  • 3.  Re: Processor stucks

    Posted 05/03/18 10:40 PM

    Originally posted by: imanopl


    Sorry for my delay. Because that issue was solved. One other issue that I have is inability to extract the model. When I want to extract the model I receive an handle error. The model is solved correctly and I can get the objective value but I cannot get the extracted model. When I make the last line of the code, I mean: cp.extract(model); , it works well. 

     

    IloCP cp(model);
    cp.solve();
    cp.out() << std::endl << "Optimal value: " << cp.getValue(cmax) << std::endl;
    

     cp.extract(model);

     

     

    #DecisionOptimization
    #OPLusingCPOptimizer


  • 4.  Re: Processor stucks

    Posted 05/04/18 10:04 AM

    Originally posted by: ChrisBr


    Hello Iman,
    I do not understand what you want to do by calling extract(model) after solve(). What could it be useful for?
    Anyway, the model's extraction is performed when solve() is called, so you not need to explicitly call extract(model) when this model has been attached to the IloCP in the constructor.
    Maybe you actually wanted to export the model? If this is the case, you might have a look to exportModel or dumpModel.
    Regards,
    Chris.

     


    #DecisionOptimization
    #OPLusingCPOptimizer


  • 5.  Re: Processor stucks

    Posted 05/05/18 12:25 AM

    Originally posted by: imanopl


    Yes O want to export model. I would check them. It seems that for cplex.exportmodel it was easire to export the model. I would try to assign the names. The links are very useful. 


    #DecisionOptimization
    #OPLusingCPOptimizer