i want to make a rescheduling model. I have 2 modes in tuple, I declare it using ID, I want to make a constraint if the costprod * duration in present’s mode in day 1-7 <= earn value than choose mode 2. But I think something missing in model. but I didn’t know where is […]
- Tags -11, '600000', { }, };, //end mobilization }; Modes = { < 0, //first mobilization < 1, 0, 1, 10, 1060000, 11100000, 1140000, 12, 12000000 >, 15, 1500000, 17, 1920000, 2, 21, 22500000, 2580000, 2600000, 276000000, 3, 300000, 32900000, 33800000, 3480000, 348000000, 36800000, 4, 46600000, 5, 6, 60300000, 7, 700000))], 8, 8400000, 880000, 9, 900000), all(m in Modes: m.taskId==t.id) mode[m]); } forall (t in Tasks, I declare it using ID, I want to make a constraint if the costprod * duration in present's mode in day 1-7 <= earn value than choose mode 2. But I think something m, i want to make a rescheduling model. I have 2 modes in tuple, m in Modes) (sum(t in Tasks)sum(m in Modes) m.costprod * m.pt <= 559717712 in 0..NbDays-14) != presenceOf(mode[first(Modes)]); //External, m in Modes) { // if(m.costprod *m.pt == 0 && 0 <= 559717712) presenceOf(mode[first(Modes)]); alternative(Taskss[t], m.dmdExtRes[r]); execute { cp.param.FailLimit = 10000; } minimize max(t in Tasks) endOf(Taskss[t]); subject to { //Alternative, m.dmdIntRes[r]); cumulFunction ExtResUsage[r in ExtRes] = sum (m in Modes: m.dmdExtRes[r]>0) pulse(mode[m]