Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  questions about 3 dimension variable matrix

    Posted 12/04/08 11:48 PM

    Originally posted by: SystemAdmin


    [billdoors said:]

    hi, Thanks for reading.
    what is wrong with this way of defining this 3 dimension variable matrix "yijr" shown below? Thank you.

    typedef IloArray<IloNumVarArray> NumVarMatrix;
    typedef IloArray<NumVarMatrix> NumVar3Matrix;
    ... ...

      NumVar3Matrix yijr(env,nbLocations);
      for (i=0;i<nbLocations;i++)<br />   {yijr[ i ]=NumVarMatrix(env,nbClients);
      for (r=0;r<P;r++)yijr&#91; i&#93;&#91;r&#93;=IloNumVarArray(env,P,0,1,ILOINT);<br />   }
    #DecisionOptimization
    #MathematicalProgramming-General


  • 2.  Re: questions about 3 dimension variable matrix

    Posted 12/08/08 04:59 PM

    Originally posted by: SystemAdmin


    [Didier Vidal said:]

    This statement looks strange:


    for (r=0;r<P;r++)yijr&#91; i&#93;&#91;r&#93;=IloNumVarArray(env,P,0,1,ILOINT);<br />

    You previously initiated the second dimension to size nbClients.  Are you sure that P is smaller than nbClients ?
    #DecisionOptimization
    #MathematicalProgramming-General


  • 3.  Re: questions about 3 dimension variable matrix

    Posted 04/07/09 11:22 PM

    Originally posted by: SystemAdmin


    [billdoors said:]

    [quote author=Didier Vidal link=topic=743.msg2266#msg2266 date=1228744768]
    This statement looks strange:


    for (r=0;r<P;r++)yijr&#91; i&#93;&#91;r&#93;=IloNumVarArray(env,P,0,1,ILOINT);<br />

    You previously initiated the second dimension to size nbClients.  Are you sure that P is smaller than nbClients ?


    thank you. That is the problem. I solved it already.
    #DecisionOptimization
    #MathematicalProgramming-General