Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  display my model

    Posted 10/27/09 02:10 PM

    Originally posted by: SystemAdmin


    [salma said:]

    hello,
    I want to know haw can I print (visualize, display) my model;
    and how to reset a variable in a Buckle for
    What 's the difference between for example IloInt and IlcInt.
    thanks
    #CPOptimizer
    #DecisionOptimization


  • 2.  Re: display my model

    Posted 10/30/09 07:15 PM

    Originally posted by: SystemAdmin


    [rdumeur said:]

    Hello Salma,

    * To display your model, you need to iterate over the IloExtractable objects stored in the IloModel and print them.
    For instance:

    int main(int argc, char** argv) {
      IloEnv        env;
      IloModel      model(env);
      IloIntVar    x(env, 0, 10, "x");
      IloIntVar    y(env, 0, 10, "y");
      model.add(x < y);<br />  for(IloModel::Iterator it(model); it.ok(); ++it) {
        cout << it << endl;<br />  }
    }

    yields:

    x[0..10]  < y&#91;0..10&#93;<br />

    I don't understand your question about resetting a variable in a buckle (you mean a loop)? What exactly do you want to do?

    * IloInt is the data type used to specify integer values when writing a constraint model. IlcInt is the integer data type used when writing search goals. More generally, Ilc prefixed data types are meant to be used when writing search code and Ilo prefixed ones are to be used during modeling.

    I hope it helps. Please let me know if you need more information.

    Cordially,



    #CPOptimizer
    #DecisionOptimization


  • 3.  Re: display my model

    Posted 11/06/09 12:24 PM

    Originally posted by: SystemAdmin


    [salma said:]

    thank you Mr.rdumeur for your help
    #CPOptimizer
    #DecisionOptimization


  • 4.  Re: display my model

    Posted 11/06/09 04:29 PM

    Originally posted by: SystemAdmin


    [salma said:]

    hello,
    I want to know if there is a limit for the number of variable(parameter) in the model, and how to Free(Release) the assigned space.
    I didn't understand the notion of goal.
    thanks
    #CPOptimizer
    #DecisionOptimization