◆ build()
Model Antares::Study::SystemModel::ModelBuilder::build |
( |
| ) |
|
Builds and returns the Model object.
- Returns
- The constructed Model object.
◆ withConstraints()
ModelBuilder & Antares::Study::SystemModel::ModelBuilder::withConstraints |
( |
std::vector< Constraint > && | constraints | ) |
|
Sets the ID of the library.
- Parameters
-
- Returns
- Reference to the LibraryBuilder object.
inputs it not garanteed to be valid after the call
◆ withId()
ModelBuilder & Antares::Study::SystemModel::ModelBuilder::withId |
( |
std::string_view | id | ) |
|
Sets the ID of the model.
- Parameters
-
- Returns
- Reference to the ModelBuilder object.
◆ withObjective()
Sets the objective of the model.
- Parameters
-
objective | The Expression object representing the objective. |
- Returns
- Reference to the ModelBuilder object.
◆ withParameters()
ModelBuilder & Antares::Study::SystemModel::ModelBuilder::withParameters |
( |
std::vector< Parameter > && | parameters | ) |
|
Sets the parameters of the model.
- Parameters
-
parameters | A vector of Parameter objects to set. |
- Returns
- Reference to the ModelBuilder object.
inputs it not garanteed to be valid after the call
◆ withPortFieldDefinitions()
Sets the ports of the model.
- Parameters
-
ports | A vector of Port objects to set. |
- Returns
- Reference to the ModelBuilder object.
inputs it not garanteed to be valid after the call
◆ withPorts()
ModelBuilder & Antares::Study::SystemModel::ModelBuilder::withPorts |
( |
std::vector< Port > && | ports | ) |
|
Sets the ports of the model.
- Parameters
-
ports | A vector of Port objects to set. |
- Returns
- Reference to the ModelBuilder object.
inputs it not garanteed to be valid after the call
◆ withVariables()
ModelBuilder & Antares::Study::SystemModel::ModelBuilder::withVariables |
( |
std::vector< Variable > && | variables | ) |
|
Sets the variables of the model.
- Parameters
-
variables | A vector of Variable objects to set. |
- Returns
- Reference to the ModelBuilder object.
inputs it not garanteed to be valid after the call
The documentation for this class was generated from the following files:
- src/study/system-model/include/antares/study/system-model/model.h
- src/study/system-model/model.cpp