Decision Variables¶
Binary ¶
Bases: DecisionVariable
Binary decision variable 0 or 1.
Example
import jijmodeling as jm
n = jm.Placeholder("n")
x = jm.Binary("x", shape=(n,))
# scalar variable
y = jm.Binary("y")
Integer ¶
Bases: DecisionVariable
Integer decision variable.
__init__(label, lower, upper, shape=(), uuid=None) ¶
BinaryVar(name, *, shape=(), uuid=None) ¶
Binary decision variable 0 or 1.
Example
import jijmodeling as jm
n = jm.Placeholder("n")
x = jm.BinaryVar("x", shape=(n,))
# scalar variable
y = jm.BinaryVar("y")
Last update: 2023年7月5日