s.t. Max_Raw_Inv {t in TIME: t>lt[r]}:
sum{r in RAWMAT} lotSize[r]*Order[r,t-lt[r]] <= invRawCap;
the problem is that the "t in time" must start after a value define by "lt[r]" and lt is defined in RAWMAT.
If I write the expression as above it doesn't work, because i get the error that r is not defined, if I add "r in RAWMAT" before the "t in TIME" it doesn't work anyway.
Can you help me finding the correct formulation?
Thank you.
Luca
--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ampl+uns...@googlegroups.com.
To post to this group, send email to am...@googlegroups.com.
Visit this group at https://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/d/optout.