Solved

Time Restriction

  • 28 December 2019
  • 2 replies
  • 66 views

Hello Members,

i want to add a time restriction constraint in my model in which i have variable s(i,j,k) for time where i and j belongs to node and k belongs to vehicle. 

i want to add a constraint which will ensure that each vehicle will not work more than 8 hours. 

Provide the possible formulation against this constraint.

Looking forward for response. 

icon

Best answer by Mischa 31 December 2019, 12:18

View original

2 replies

Thank you for your response.

I added this already and it works.

 

Regards

Muhammad Furqan

Userlevel 3
Badge +6

Hi Muhammad,

 

If I understand your question correctly, I think you should add a constraint called something like

 

LimitTime(k)

 

with definition

 

sum((i, j), s(i, j, k)) <= 8;

 

In English, this states that for every vehicle k, the total sum of its time s, as distributed over the (i, j) pairs, should be 8 or less.

I hope this helps!

 

Regards,

Mischa

Reply


Didn't find what you were looking for? Try searching on our documentation pages:

AIMMS Developer & PRO | AIMMS How-To | AIMMS SC Navigator