|
Processor * | m_processor |
|
axxd | m_stateVariableChanges |
|
axxd | m_changeRates |
|
int | m_nIterations |
|
◆ ApplyConstraintsFor()
void Solver::ApplyConstraintsFor |
( |
int | col | ) |
|
|
protected |
Enforce the constraints for the change rates in the provided column.
- Parameters
-
col | The column (= iteration) of the internal storage containing the change rates. |
◆ ApplyProcesses() [1/2]
void Solver::ApplyProcesses |
( |
const axd & | changeRates | ) |
const |
|
protected |
Apply the changes to the processes using the provided change rates.
- Parameters
-
changeRates | The change rate values to use. |
◆ ApplyProcesses() [2/2]
void Solver::ApplyProcesses |
( |
int | col | ) |
const |
|
protected |
Apply the changes to the processes.
- Parameters
-
col | The column (= iteration) of the internal storage containing the change rates to use. |
◆ ComputeChangeRates()
void Solver::ComputeChangeRates |
( |
int | col, |
|
|
bool | applyConstraints = true ) |
|
protected |
Compute the change rates of all processes.
- Parameters
-
col | The column of the internal storage where the change rates must be saved (= iteration). |
applyConstraints | Option to apply the constraints (e.g., storage max capacity). |
◆ Connect()
void Solver::Connect |
( |
Processor * | processor | ) |
|
|
inline |
Connect the solver to a processor.
- Parameters
-
processor | The processor to connect with. |
◆ Factory()
Create the solver based on the provided settings.
- Parameters
-
solverSettings | The solver settings. |
- Returns
- A new generated solver.
◆ Finalize()
void Solver::Finalize |
( |
| ) |
const |
|
protected |
◆ InitializeContainers()
void Solver::InitializeContainers |
( |
| ) |
|
Initialize the internal containers to the needed size.
◆ ResetStateVariableChanges()
void Solver::ResetStateVariableChanges |
( |
| ) |
|
|
protected |
Reset the stored state variable changes to zero.
◆ SaveStateVariables()
void Solver::SaveStateVariables |
( |
int | col | ) |
|
|
protected |
Save the state variables.
- Parameters
-
col | The column of the internal storage where the state variables must be saved. |
◆ SetStateVariablesToAvgOf()
void Solver::SetStateVariablesToAvgOf |
( |
int | col1, |
|
|
int | col2 ) |
|
protected |
Set the state variables to use to the average values of the selected iterations (columns).
- Parameters
-
col1 | The first column (= iteration) of the internal storage containing the state variables to use. |
col2 | The second column (= iteration) of the internal storage containing the state variables to use. |
◆ SetStateVariablesToIteration()
void Solver::SetStateVariablesToIteration |
( |
int | col | ) |
|
|
protected |
Set the state variables to use to the values of the selected iteration (column).
- Parameters
-
col | The column (= iteration) of the internal storage containing the state variables to use. |
◆ Solve()
virtual bool Solver::Solve |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following files:
- /github/workspace/core/src/base/Solver.h
- /github/workspace/core/src/base/Solver.cpp