Skip to contents

Run mosox on a GMPL model or data file

Usage

en_mosox_run(
  model,
  data = NULL,
  output = NULL,
  command = c("compile", "solve"),
  extra_args = character(),
  check = TRUE
)

Arguments

model

character. Path to the GMPL model file.

data

character. Optional path to the GMPL data file.

output

character. Optional output path for compile or solve output.

command

character. Either "compile" or "solve".

extra_args

character. Additional CLI arguments to pass to mosox.

check

logical. If TRUE, stop on a non-zero exit status.

Value

A list with the execution result.