Skip to contents

Reproduces 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() or solve_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.

Value

Invisibly, the paths written.

See also