
Write a solution in energyRt's output/ layout
Source: R/read_solution_mps.R
write_energyrt_output.RdReproduces what energyRt's generated output.py writes, so
energyRt::read_solution() consumes it unchanged: the per-variable tables
of write_solution(), plus a variable_list.csv naming what was written,
a set-membership table and a run log.
Usage
write_energyrt_output(
solution,
dir,
format = c("arrow", "csv", "parquet"),
variables = NULL
)Arguments
- solution
The list returned by
read_mps_solution()orsolve_highs().- dir
Output directory; created if absent.
- format
"arrow"(feather, lz4 - what energyRt writes),"csv"or"parquet".- variables
Optional character vector limiting which variables to write.