Maximize a linear objective over 0-1 variables under linear
constraints – TDA's mlpi (CACM algorithm 449). The problem
solved is
$$\max\; c'x + k \quad \mathrm{s.t.}\; A x \ge b,\; x \in \{0,1\}^n$$
with integer coefficients (negative ones are fine). The command's
source states no objective; this is what it computes, established
against exhaustive search – see examples/coverage/mlpiops.cf.
Usage
tda_mlpi(
objective,
constraints,
bounds,
constant = 0,
max_solutions = 100,
dir = tempfile("tda"),
...
)Arguments
- objective
integer coefficients
c, one per variable (at least two variables).- constraints
the constraint matrix
A, one row per constraint (at least one),length(objective)columns.- bounds
the right-hand sides
b, one per constraint row.- constant
k, added to the reported value (default 0).- max_solutions
how many optimal solutions to return at most.
- dir
working directory.
- ...
passed to
tda_run.
See also
Other optimization:
tda_boolean_min(),
tda_mlp(),
tda_mls(),
tda_mqap(),
tda_mqp()