Skip to main content

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. 

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


Thank you for your response.

I added this already and it works.

 

Regards

Muhammad Furqan


Reply


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

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