Skip to contents

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:

Rscript --vanilla solve.R        # the driver written beside the matrix

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.

Usage

mm_run(dir = ".", verbose = TRUE, stream = TRUE)

Arguments

dir

the run directory, holding model.mps and solve.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 highs package surfaces none of the solver's own output. FALSE solves in this process, leaving the log to be read afterwards (or followed by hand).

Value

the solver's status, invisibly.