Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
Expand all | Collapse all

Using float in size of interval

  • 1.  Using float in size of interval

    Posted 10/03/19 10:57 AM

    Originally posted by: Mohamed Awad


    Dears,

     

    I would like to ask how can I consider float value in the size of an interval. I am attaching the sched_sequence from the tutorials after I changed the duration in *.dat file to the following:

    Duration =  [
      35.50,
      15.2,
      40.1,
      15.35,
      5.25,
      10.25,
      5.20,
      10.80,
      5.60,
      5.50
    ];

     

    I know that dvar interval cannot be used with float. When I checked floatexpr in the tutorials, I found that it makes uniform values but in my case, I don't have such uniformity. Could you please help me with this issue.

     

    Thanks in advance

    Mohamed


    #DecisionOptimization
    #OPLusingCPOptimizer


  • 2.  Re: Using float in size of interval

    Posted 10/04/19 01:59 AM

    Hi

    suppose your unit is second, you could move to second / 100 as new unit and then all your length will be integer.

    regards


    #DecisionOptimization
    #OPLusingCPOptimizer