Skip to main content

t = time index

M = vehicle index
I = supply node

J = intermodal node

I have a variable with (t,M,I,J) index which determines the number of units delivered to a specific node. However, I want to determine the time of delivery of each set of units as a separate variable. Thus, it’s like extracting t from the variables (t,M,I,J). How do I approach this?

Thaank you!

Hey @ccfcuento, depends a little on what is your final objective and how you have set the variable domain for these indexes. 

If t is unique for M,I,J, then you can use something like:

ep_uniqueT(i1, i2, i3) := first(it | p_complete(i1, i2, i3, it));

If not, you can use: 

ep_multipleT(i1, i2, i3, it) := it $ p_complete(i1, i2, i3, it);

 

Attached the section I created this example, you can add it to your model by importing it: https://how-to.aimms.com/Articles/145/145-import-export-section.html#importing-a-section


Reply


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

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