6#include "antares-xpansion/benders/output/OutputWriter.h"
7#include "antares-xpansion/multisolver_interface/Solver.h"
8#include "antares-xpansion/xpansion_interfaces/ILogger.h"
19 Worker(VariableMap variable_map, std::filesystem::path path_to_mps,
21 void init(
const std::string &solver_name,
int log_level,
30 void write_basis(
const std::filesystem::path &filename)
const;
31 [[nodiscard]]
virtual std::shared_ptr<SolverAbstract> solver()
const;
34 std::filesystem::path _path_to_mps;
41 void solve(
int &lp_status,
const std::string &outputroot,
42 const std::string &output_master_mps_file_name,
44 int RowIndex(
const std::string &row_name)
const;
45 void ChangeRhs(
int id_row,
double val)
const;
46 void GetRhs(
double *val,
int id_row)
const;
47 void AddRows(std::vector<char>
const &qrtype_p,
48 std::vector<double>
const &rhs_p,
49 std::vector<double>
const &range_p,
50 std::vector<int>
const &mstart_p,
51 std::vector<int>
const &mclind_p,
52 std::vector<double>
const &dmatval_p,
53 const std::vector<std::string> &row_names)
const;
67 bool _is_master =
false;
73 const std::filesystem::path &path)
const;
75 void writeProb(
const std::filesystem::path& out)
const;
Definition SolverAbstract.h:170
Definition SolverAbstract.h:16
Mother-class Worker.
Definition Worker.h:17
std::shared_ptr< SolverAbstract > _solver
Definition Worker.h:65
VariableMap _name_to_id
Definition Worker.h:36
void get_splex_num_of_ite_last(int &result) const
Get the number of iteration needed to solve a problem.
Definition Worker.cpp:108
void init(const std::string &solver_name, int log_level, SolverLogManager &solver_log_manager, ProblemsFormat format)
Initialization of a problem.
Definition Worker.cpp:38
Int2Str _id_to_name
Definition Worker.h:38
int Getnrows() const
Returns the number of rows (constraints)
Definition Worker.cpp:139
void get_value(double &lb) const
Return the optimal value of a problem.
Definition Worker.cpp:22
void free()
Free the problem.
Definition Worker.cpp:10
void solve(int &lp_status, const std::string &outputroot, const std::string &output_master_mps_file_name, Writer writer) const
Method to solve a problem.
Definition Worker.cpp:65