【发布时间】:2020-09-11 20:49:13
【问题描述】:
以下约束是在 AMPL 环境中编写的,我想将其转换为 CPLEX?
subject to ex_one{b in B}: sum{t in T: t >= early[b]} y[b,t] <= 1;
#subject to most_one{tt in T, b not in BT[tt]}: sum{t in T} y[b,t] <= 1;
subject to grade1{t in T}: G_min*sum{b in B: early[b] <= t}(if g[b] > total[b] then
total[b] else 0)*y[b,t] <= sum{b in B: early[b] <=t}(if g[b] > total[b] then g[b] else
0)*y[b,t];
【问题讨论】:
-
这能回答你的问题吗? How do I convert AMPL to CPLEX