Antares Xpansion
Investment simulations for Antares studies
Loading...
Searching...
No Matches
MergeMasterSubproblemMPS Class Reference
Inheritance diagram for MergeMasterSubproblemMPS:
AbstractMergeMPS

Public Member Functions

void launch () override
 Merge and solve master and subproblems.
 
 AbstractMergeMPS (MergeMPSOptions options, Logger logger, std::shared_ptr< Output::OutputWriter > writer)
 
- Public Member Functions inherited from AbstractMergeMPS
 AbstractMergeMPS (MergeMPSOptions options, Logger logger, std::shared_ptr< Output::OutputWriter > writer)
 

Additional Inherited Members

- Protected Member Functions inherited from AbstractMergeMPS
void terminate (const std::string &location, const std::string &message) const
 Interrupt the program and output current merged .lp and .mps files.
 
void export_problem (const std::string &filename="log_merged", bool export_lp=false) const
 Export problem into INPUTROOT/filename and optionally writes the lp variant We do it this way because we cannot read a master problem not at the input root.
 
std::shared_ptr< SolverAbstractget_local_solver (const std::filesystem::path &root_dir, const std::string &filename) const
 Creates a local solver from a MPS file.
 
void multiply_obj_by_weight_factor (SolverAbstract &local_solver, double weight) const
 Weights local solver's objective function by a given value.
 
VariableMap merge_local_solver (SolverAbstract &local_solver, const std::string &local_prefix, const VariableMap &local_var_map, const std::string &filename) const
 Merges local to global solver.
 
- Protected Attributes inherited from AbstractMergeMPS
std::shared_ptr< Output::OutputWriterwriter_
 
MergeMPSOptions options_
 
Logger logger_
 
const SolverFactory factory_
 
SolverIO solver_io_
 
std::shared_ptr< SolverAbstractptr_merged_solver_
 

Member Function Documentation

◆ launch()

void MergeMasterSubproblemMPS::launch ( )
overridevirtual

Merge and solve master and subproblems.

Implements AbstractMergeMPS.


The documentation for this class was generated from the following files: