Antares Xpansion
Investment simulations for Antares studies
Loading...
Searching...
No Matches
SolverFactory Class Reference

Public Member Functions

 SolverFactory (std::shared_ptr< ILoggerXpansion > logger=std::make_shared< EmptyLogger >())
 Constructor of SolverFactory, fills the list of available solvers.
 
SolverAbstract::Ptr create_solver (const std::string &solver_name) const
 Creates and returns to an object solver from the wanted implementation.
 
SolverAbstract::Ptr create_solver (const std::string &solver_name, SolverLogManager &log_manager) const
 
SolverAbstract::Ptr create_solver (const std::string &solver_name, const SOLVER_TYPE solver_type) const
 Creates and returns to an object solver from the wanted implementation.
 
SolverAbstract::Ptr create_solver (const std::string &solver_name, const SOLVER_TYPE solver_type, SolverLogManager &log_manager) const
 
SolverAbstract::Ptr copy_solver (SolverAbstract::Ptr to_copy)
 Copy constructor : Creates and returns to an object solver from the wanted implementation by copying datas from same solver implementation.
 
SolverAbstract::Ptr copy_solver (const std::shared_ptr< const SolverAbstract > &to_copy)
 
const std::vector< std::string > & get_solvers_list () const
 Returns a reference to the list of available solvers.
 

Public Attributes

bool isXpress_available_ = false
 
std::shared_ptr< ILoggerXpansionlogger_
 

Member Function Documentation

◆ copy_solver()

SolverAbstract::Ptr SolverFactory::copy_solver ( SolverAbstract::Ptr  to_copy)

Copy constructor : Creates and returns to an object solver from the wanted implementation by copying datas from same solver implementation.

Parameters
to_copy: solver to copy

◆ create_solver() [1/2]

SolverAbstract::Ptr SolverFactory::create_solver ( const std::string &  solver_name) const

Creates and returns to an object solver from the wanted implementation.

Parameters
solver_name: Name of the solver to use

◆ create_solver() [2/2]

SolverAbstract::Ptr SolverFactory::create_solver ( const std::string &  solver_name,
const SOLVER_TYPE  solver_type 
) const

Creates and returns to an object solver from the wanted implementation.

Parameters
solver_name: Name of the solver to use
solver_type: Name of the solver to use

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