|
Antares Simulator
Power System Simulator
|
Class for translating a weekly problem to a linear programming problem. More...
#include <HebdoProblemToLpsTranslator.h>
Public Member Functions | |
| WeeklyDataFromAntares | translate (const PROBLEME_ANTARES_A_RESOUDRE *problem, std::string_view name) const |
| Translates a weekly problem to a linear programming problem. More... | |
| ConstantDataFromAntares | commonProblemData (const PROBLEME_ANTARES_A_RESOUDRE *problem) const |
| Retrieves common problem data, the part common to every weekly problems. More... | |
Class for translating a weekly problem to a linear programming problem.
This class is responsible for translating a weekly problem to a linear programming problem.
| ConstantDataFromAntares Antares::Solver::HebdoProblemToLpsTranslator::commonProblemData | ( | const PROBLEME_ANTARES_A_RESOUDRE * | problem | ) | const |
Retrieves common problem data, the part common to every weekly problems.
This function takes a pointer to a PROBLEME_ANTARES_A_RESOUDRE object and retrieves the common problem data. It returns a ConstantDataFromAntaresPtr to the common problem data.
| problem | A pointer to the problem from which to retrieve the common data. |
| WeeklyDataFromAntares Antares::Solver::HebdoProblemToLpsTranslator::translate | ( | const PROBLEME_ANTARES_A_RESOUDRE * | problem, |
| std::string_view | name | ||
| ) | const |
Translates a weekly problem to a linear programming problem.
This function takes a pointer to a PROBLEME_ANTARES_A_RESOUDRE object and a string_view representing the name of the problem. It translates the weekly problem to a linear programming problem and returns a WeeklyDataFromAntaresPtr to the translated problem. Datas from the PROBLEME_ANTARES_A_RESOUDRE are copied to the WeeklyDataFromAntaresPtr.
| problem | A pointer to the weekly problem to be translated. |
| name | The name of the problem. |