Decision Optimization

Decision Optimization

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


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

Error when I try to modify bound: IloAlgorithm 0x9f48518 cannot change

  • 1.  Error when I try to modify bound: IloAlgorithm 0x9f48518 cannot change

    Posted 11/01/11 10:46 PM

    Originally posted by: YongjiaSong


    Hi all,

    I have an error that comes out when I want to modify the bound on my variables. I tried to use CPLEX as an LP solver iteratively, and in each iteration, I need to update the bound on my variables. In order for a warm start, I don't re-create my model everytime from scratch, and instead, I set an initial bound and in each iteration I update the bound. But I encounter this message when I use alpha_list[i].setBounds(lb,ub);(I have some subproblems, and I store the variables for subproblems in a vector alpha_list, and now I try to update the bounds for the ith subproblem).

    Thanks a lot!
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Error when I try to modify bound: IloAlgorithm 0x9f48518 cannot change

    Posted 11/03/11 05:38 PM

    Originally posted by: SystemAdmin


    The scheme that you speak about does sound possible, however without looking at the exact code or program flow, its hard to guess the cause of the error. It is possible that the variable that you are trying to modify does not exist in the current model / IloCplex object and/or other inconsistencies between your list and the extracted model leading to the message. If you could share a sample to reproduce the issue, we could investigate this further. Also, which version of CPLEX are you using?
    #CPLEXOptimizers
    #DecisionOptimization