Antares Simulator
Power System Simulator
Antares::ModelerStudy::SystemModel::ModelBuilder Class Referencefinal

Public Member Functions

ModelBuilderwithId (std::string_view id)
 Sets the ID of the model. More...
 
ModelBuilderwithObjectives (std::vector< Objective > &&objectives)
 Sets the objectives of the model. More...
 
ModelBuilderwithParameters (std::vector< Parameter > &&parameters)
 Sets the parameters of the model. More...
 
ModelBuilderwithVariables (std::vector< Variable > &&variables)
 Sets the variables of the model. More...
 
ModelBuilderwithPorts (std::vector< Port > &&ports)
 Sets the ports of the model. More...
 
ModelBuilderwithConstraints (std::vector< Constraint > &&constraints)
 Sets the constraints of the model. More...
 
ModelBuilderwithPortFieldDefinitions (std::vector< PortFieldDefinition > &&portFieldDefinitions)
 Sets the port-field definitions of the model. More...
 
ModelBuilderwithExtraOutputs (std::vector< ExtraOutput > &&extraOutputs)
 Sets the extra outputs of the model. More...
 
Model build ()
 Builds and returns the Model object. More...
 

Member Function Documentation

◆ build()

Model Antares::ModelerStudy::SystemModel::ModelBuilder::build ( )

Builds and returns the Model object.

Returns
The constructed Model object.

◆ withConstraints()

ModelBuilder & Antares::ModelerStudy::SystemModel::ModelBuilder::withConstraints ( std::vector< Constraint > &&  constraints)

Sets the constraints of the model.

Parameters
constraintsA vector of Constraint objects to set.
Returns
Reference to the ModelBuilder object.

inputs are not guaranteed to be valid after the call

◆ withExtraOutputs()

ModelBuilder & Antares::ModelerStudy::SystemModel::ModelBuilder::withExtraOutputs ( std::vector< ExtraOutput > &&  extraOutputs)

Sets the extra outputs of the model.

Parameters
extraOutputsA vector of ExtraOutput objects to set.
Returns
Reference to the ModelBuilder object.

inputs are not guaranteed to be valid after the call

◆ withId()

ModelBuilder & Antares::ModelerStudy::SystemModel::ModelBuilder::withId ( std::string_view  id)

Sets the ID of the model.

Parameters
idThe ID to set.
Returns
Reference to the ModelBuilder object.

◆ withObjectives()

ModelBuilder & Antares::ModelerStudy::SystemModel::ModelBuilder::withObjectives ( std::vector< Objective > &&  objectives)

Sets the objectives of the model.

Parameters
parametersA vector of Objective objects to set.
Returns
Reference to the ModelBuilder object.

◆ withParameters()

ModelBuilder & Antares::ModelerStudy::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 are not guaranteed to be valid after the call

◆ withPortFieldDefinitions()

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

Sets the port-field definitions of the model.

Parameters
portFieldDefinitionsA vector of PortFieldDefinition objects to set.
Returns
Reference to the ModelBuilder object.

inputs are not guaranteed to be valid after the call

◆ withPorts()

ModelBuilder & Antares::ModelerStudy::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 are not garanteed to be valid after the call

◆ withVariables()

ModelBuilder & Antares::ModelerStudy::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 are not guaranteed to be valid after the call


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