--Hello everyone ! I am new to AMPL and this is my first post, any suggestions or help is much appreciated
I have two parameters let's say job and tools and this matrix
t1 t2 t3
j1 1 1 0
j2 0 1 1
j3 1 0 1
j4 0 0 1
so here it means job1 can use either tool1 or tool2 to be processed , job2 can use either tool2 or tool3 .. etc , so my question is how to write this in AMPL
and create a set let’s say set A; for this two parameters to be used in the following constraint
{h in 1..H} : sum {m in 1..M,j in A} p[j,m] * X[j,h,m] <= TL[t] * TC[t];
where h is the number of periods, m number of modes ( different processing time and cost for different modes),
j is the number of jobs, and t is the number of tools ,
X is binary decision variable.
TL and TC : capacity of tools for only tools in set A
Any help is much appreciated
Thank you
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.