Solves the model.mps of a run directory and decodes it into output/,
taking the solver, the machine and the control options from the solve.yml
that the write phase leaves beside the matrix. This is what
solve_scenario(wait = FALSE) launches with Rscript, and what to run by
hand to solve a staged model out of band:
Nothing is carried over from the session that wrote the matrix – the directory is the whole input – so the solve does not sit on top of the build's heap. The process uses the INSTALLED energyRt, which need not be the one that wrote the matrix.
Arguments
- dir
the run directory, holding
model.mpsandsolve.yml.- verbose
print the stages and the solver's progress.
- stream
solve in a process of its own and print the solver's log as it is written, which is the only live view of a HiGHS solve – the
highspackage surfaces none of the solver's own output.FALSEsolves in this process, leaving the log to be read afterwards (or followed by hand).
See also
write_model() to produce the directory, read_solution() to
collect it.
Other solving:
read_solution(),
solve_by_region(),
solve_by_sample(),
solve_guided(),
solve_model(),
solve_recursive(),
with_solver_log(),
write_model()
