Builds a MultimodSession: an R6 object holding the state the matrix route
otherwise threads through every call - the model, the assembled LP, the
solution and the shared options - and forwarding each step to the ordinary
exported function.
Arguments
- model
A multimod model with data attached.
- verbose
Logical; forwarded to every step.
- on_duplicate
Passed to
model_to_lp().- chunk_rows
Passed to
model_to_lp().- control
Solver options passed to
solve_highs().
Details
Every method returns the session invisibly, so calls chain. Results are
reachable as fields ($lp, $solution) and are the same objects the
functional API returns. The session is a convenience layer: it does not
replace model_to_lp(), solve_highs() or write_mps(), which remain the
supported interface.
Methods: $build_lp(), $check_numbers(), $solve(), $write_mps(),
$read_solution(), $write_output(), and the accessors $numbers(),
$mps_paths(), $output_files().
