Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  custom bounding of a dvar array

    Posted 02/21/14 04:14 PM

    Originally posted by: AlexWhiter


    i've got a problem here i cant solve with my current knowlege. Let's say i have a tuple like

    tuple joint
    {
    int id;
    int maxvalue;
    }

     
    then, i have a set of em
     
    {joint} joints=...;
     
    and an array indexed by that set AND bounded by according element's maxvalue. i want to do somewhat like
     
    dvar int array[joints] in 0..(w: w.maxvalue | w in joints);
     

    But i've got no idea how to pull such things off(

     

    UPD: and what can be done if array should be indexed by joint.id?

     

    Thanks.


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: custom bounding of a dvar array

    Posted 02/22/14 01:17 PM

    hi,

    let me give you an example:

     

    tuple joint
    {
    int id;
    int maxvalue;
    }
     

     
    {joint} joints={<1,2>};
     

    dvar int array[w in joints] in 0..w.maxvalue;

    subject to
    {

    }
     

     

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: custom bounding of a dvar array

    Posted 02/22/14 02:06 PM

    Originally posted by: AlexWhiter


    Oh, wow. How could i havent seen that?) Thanks a lot)


    #DecisionOptimization
    #OPLusingCPLEXOptimizer