Time Restriction

  • 28 December 2019
  • 2 replies

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. 


Best answer by Mischa 31 December 2019, 12:18

View original

2 replies

Userlevel 3
Badge +6

Hi Muhammad,


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




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!




Thank you for your response.

I added this already and it works.



Muhammad Furqan


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

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