Antares Simulator
Power System Simulator
Loading...
Searching...
No Matches
Antares::Study::SystemModel::ModelBuilder Class Reference

Public Member Functions

ModelBuilderwithId (std::string_view id)
 Sets the ID of the model.
 
ModelBuilderwithObjective (Expression &&objective)
 Sets the objective of the model.
 
ModelBuilderwithParameters (std::vector< Parameter > &&parameters)
 Sets the parameters of the model.
 
ModelBuilderwithVariables (std::vector< Variable > &&variables)
 Sets the variables of the model.
 
ModelBuilderwithPorts (std::vector< Port > &&ports)
 Sets the ports of the model.
 
Model build ()
 Builds and returns the Model object.
 
ModelBuilderwithConstraints (std::vector< Constraint > &&constraints)
 Sets the ID of the library.
 
ModelBuilderwithPortFieldDefinitions (std::vector< PortFieldDefinition > &&portFieldDefinitions)
 Sets the ports of the model.
 

Member Function Documentation

◆ 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
idThe ID to set.
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
idThe ID to set.
Returns
Reference to the ModelBuilder object.

◆ withObjective()

ModelBuilder & Antares::Study::SystemModel::ModelBuilder::withObjective ( Expression && objective)

Sets the objective of the model.

Parameters
objectiveThe 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
parametersA vector of Parameter objects to set.
Returns
Reference to the ModelBuilder object.

inputs it not garanteed to be valid after the call

◆ withPortFieldDefinitions()

ModelBuilder & Antares::Study::SystemModel::ModelBuilder::withPortFieldDefinitions ( std::vector< PortFieldDefinition > && portFieldDefinitions)

Sets the ports of the model.

Parameters
portsA 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
portsA 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
variablesA 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: