solver_param_file.hpp file
Resolve relative solver_options.param_file paths against the case input_directory.
Cases emitted by plexos2gtopt / plp2gtopt pin solver_options.param_file = "solvers/cplex.prm" — a path relative to the case directory, like every other input file the case references. The solver plugins hand that string verbatim to the backend (CPXreadcopyparam, …) and derive sibling files from its directory (cplex_warmstart.prm, cuopt.cfg, highs_warmstart.opts, …), so a run started from any directory other than the case directory silently fell back to solver defaults. The helpers here turn the relative path into the path that actually exists before any plugin sees it: input_directory first (the case directory wins), the working directory only as a fallback when the case has no such file. The choice is logged.
Namespaces
- namespace gtopt
Classes
- struct gtopt::ResolvedParamFile
- A resolved solver parameter file and where it was found.