在 JuMP 优化问题中指定只能为 0 或 1 的变量的语法是什么?
我正在使用以下代码:
@variable(mod, X == 1 || 0)
但它不起作用。
julia julia-jump
julia ×1
julia-jump ×1