Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
Expand all | Collapse all

A stange error about getting the obj value and solution after solving a MIP

  • 1.  A stange error about getting the obj value and solution after solving a MIP

    Posted 12/24/11 02:17 AM

    Originally posted by: SystemAdmin


    Hi, I am having a very strange question about CPLEX. I am solving a large MILP by using CPLEX 12.1 in C++. I can successfully solve it and also get solution status as optimal. But when I use .getObjValue() to get the obj value or use getValues to get the solutions, I always have an error. I think this is very similar to the case reported before in this forum:
    http://www.ibm.com/developerworks/forum /thread.jspa?messageID=14448196
    The only difference is that I am not migrating from Cplex 10.2 to 12.1. I am writing these codes for 12.1
    Another thing is that this error is not always happening. For example, if I change the cplex.setParam(IloCplex::EpGap, 0.05) to cplex.setParam(IloCplex::EpGap, 0.1), then the error is gone. It seems that this error happens randomly....
    I wonder if somebody could please share some experience with me on how to solve this problem.

    Thank you in advance! Wish you Merry Christmas and Happy New Year!

    Alex
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: A stange error about getting the obj value and solution after solving a MIP

    Posted 12/25/11 11:43 AM

    Originally posted by: SystemAdmin


    This is a duplicate of question 14772169.
    #CPLEXOptimizers
    #DecisionOptimization