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

Classes

struct  CandidateCosts
 
struct  TrajectoryConstraint
 
struct  TrajectoryGlobalData
 
struct  TrajectoryNode
 
struct  VariablePositions
 

Public Types

enum  CandidateVariableType { CAPACITY , DX_PLUS , DX_MINUS }
 
using CandidatesCouplingMap = std::map<std::string, std::map<std::string, VariablePositions>>
 
using VariableRef = std::tuple<std::string, std::string, CandidateVariableType>
 
using TrajectoryTree = std::vector<TrajectoryNode>
 

Public Member Functions

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

Static Public Member Functions

static CandidateVariableType parse_variable_type (const std::string &s)
 
static char parse_constraint_type (const std::string &s)
 

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 MergeMasterTrajectoryMPS::launch ( )
overridevirtual

Merge and solve master and subproblems.

Implements AbstractMergeMPS.


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