Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  ILOG objects and references

    Posted 12/03/11 03:34 PM

    Originally posted by: yek_ti1


    Hi,

    I have seen several times in samples something like:

    IloModel lModel (env)
    MyFunction (IloModel amodel){
    lModel.add(titi<toto);
    }

    instead i would have done MyFunction (IloModel& amodel).
    Could someone explain me why IloModel works like a reference ?
    Is it true for all ILOG objects ?
    #CPOptimizer
    #DecisionOptimization


  • 2.  Re: ILOG objects and references

    Posted 12/04/11 12:56 PM

    Originally posted by: SystemAdmin


    There is no need to pass IloModel by address (IloModel&) because IloModel - as most of Concert and CP Optimizer classes - is a handle, that is it just contains a pointer to the implementation class (IloModelI). Implementation classes usually end up with an 'I'.

    Philippe
    #CPOptimizer
    #DecisionOptimization