Complimentary Coursera offer for all new members
Get offer Join without the offer
I did create a dummy sequence to consider the second transition matrix. Please see the following code. It works well, but not efficient for a large scale instance (50 machines; 2000 jobs). The particular test instance has a huge number of forbidden transitions. Better way to model, please? Thanks!
dvar sequence Mch in all(j in Jobs) itvj[j] types all(j in Jobs) j.loc;dvar sequence MchDummy in all(j in Jobs) itvj[j] types all(j in Jobs) j.grp;noOverlap(Mch, penalty_l2l,true);noOverlap(MchDummy,forbid_g2g ,true);