Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
var x11>=0; var x21>=0; var x11b binary; var x12b binary; s.t. eq1: (50 + 50*x11)*x11b + (40 + 40*x21)*x12b<=500;
它提示我作为错误消息
x11b 未定义
我看了几页,格式相同。知道为什么会这样吗?
定义 x11b 的正确方法是
var x11b >= 0, binary
但正如评论中所指出的,这不是一个线性程序。
系统轴错误,它是:
var x11b, binary; var x12b, binary;