Topic
6 replies Latest Post - ‏2014-04-03T07:12:27Z by appleme
appleme
appleme
7 Posts
ACCEPTED ANSWER

Pinned topic How to restraint intervals overlap Numbers in a special scope?

‏2014-03-25T01:42:25Z |

Hi all.

I want to create a constraint in opl,but I do not know how to write?

int startTime=...;

int endTime=...;

int numbers=..;

tuple  JUP
{  
   string p;
   string u;  
} ;
{JUP} jup=...;

dvar interval TT[o in jup];

I want to create a constraint :the number of  the Overlapping TT[o in jup] which is between startTime and endTime will not be greater than the special numbers?

waiting for your answer,Thank you!