Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Substitue for addh() command

    Posted 06/07/12 03:53 AM

    Originally posted by: WBCT_tushar_goel


    i have recently migrated from OPL 3.7.1 to ILOG CPLEX optimization studio 12.2. In OPL 3.7.1 there is command "addh()" that increases the upper bound of the open array solution by one (addh stands for \add high").

    for example( In OPL 3.7.1):

    Model m("queens.mod","queens.dat");
    int nb := 0;
    Open int solutionhttp://1..0,1..m.n;
    while m.nextSolution() do {
    n := n + 1;
    solution.addh();
    forall(i in 1..m.n)
    solutionn,i := m.queens[i];
    }
    forall(s in 1..n) {
    forall(i in 1..m.n)
    cout << "queens = " << solutions,i << endl;
    cout << endl;
    }

    I want to do exactly the similar operation in the newer version, please suggest some way to do it.
    #DecisionOptimization
    #OPLusingCPOptimizer


  • 2.  Re: Substitue for addh() command

    Posted 06/07/12 05:51 AM

    Originally posted by: GGR


    Hi

    Open arrays are no longer supported please refer to

    IBM ILOG CPLEX Optimization Studio V12.4 > Introducing IBM ILOG CPLEX Optimization Studio V12.4 > Previous release notes and OPL migration guide > OPL previous versions > OPL Migration Guide > OPL 4.x Release Notes > New and changed in OPL 4.0
    Hope that helps
    #DecisionOptimization
    #OPLusingCPOptimizer