Hello everyone ! I am new to AMPL and this is my first post , thank you in advance for any suggestions or help .
I have a matrix for two parameters let's say job and tool , as the following
t1 t2 t3
j1 1 0 1
j2 0 1 1
j3 1 1 0
j4 0 0 1 ... etc
the simple explanation is that job1 can be used by t1 and t3 to be processed , j2 uses t2 and t3 ..etc so my question is how can i write this in AMPL to use the set let's say
set A; to use later in this 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, j number of jobs, m numbers of modes( different processing time for each mode) and t number of tools and X is a binary decision variable.
Any help would be much appreciated ,
Thank you