KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
|
Standardized constraint response function. More...
Public Member Functions | |
def | __init__ (self, Kratos.Parameters parameters, MasterControl master_control, OptimizationProblem optimization_problem, int required_buffer_size=2) |
str | IsEqualityType (self) |
float | GetStandardizedReferenceValue (self) |
float | CalculateStandardizedValue (self, KratosOA.CollectiveExpression control_field, bool save_value=True) |
KratosOA.CollectiveExpression | CalculateStandardizedGradient (self, bool save_field=True) |
float | GetValue (self, int step_index=0) |
float | GetStandardizedValue (self, int step_index=0) |
float | GetScaledViolationValue (self, int step_index=0) |
float | GetAbsoluteViolation (self, int step_index=0) |
float | GetRelativeViolation (self, int step_index=0) |
float | GetRelativeChange (self) |
float | GetAbsoluteChange (self) |
dict | GetInfo (self) |
Standardized constraint response function.
This class creates instances to standardize any response function for the specified type of the contraint. Supported contraint types: "=", "<", "<=, ">", ">=" The reference value for the constraint either can be the "initial_value" or a specified value.
def standardized_constraint.StandardizedConstraint.__init__ | ( | self, | |
Kratos.Parameters | parameters, | ||
MasterControl | master_control, | ||
OptimizationProblem | optimization_problem, | ||
int | required_buffer_size = 2 |
||
) |
KratosOA.CollectiveExpression standardized_constraint.StandardizedConstraint.CalculateStandardizedGradient | ( | self, | |
bool | save_field = True |
||
) |
float standardized_constraint.StandardizedConstraint.CalculateStandardizedValue | ( | self, | |
KratosOA.CollectiveExpression | control_field, | ||
bool | save_value = True |
||
) |
float standardized_constraint.StandardizedConstraint.GetAbsoluteChange | ( | self | ) |
float standardized_constraint.StandardizedConstraint.GetAbsoluteViolation | ( | self, | |
int | step_index = 0 |
||
) |
dict standardized_constraint.StandardizedConstraint.GetInfo | ( | self | ) |
float standardized_constraint.StandardizedConstraint.GetRelativeChange | ( | self | ) |
float standardized_constraint.StandardizedConstraint.GetRelativeViolation | ( | self, | |
int | step_index = 0 |
||
) |
float standardized_constraint.StandardizedConstraint.GetScaledViolationValue | ( | self, | |
int | step_index = 0 |
||
) |
float standardized_constraint.StandardizedConstraint.GetStandardizedReferenceValue | ( | self | ) |
float standardized_constraint.StandardizedConstraint.GetStandardizedValue | ( | self, | |
int | step_index = 0 |
||
) |
float standardized_constraint.StandardizedConstraint.GetValue | ( | self, | |
int | step_index = 0 |
||
) |
str standardized_constraint.StandardizedConstraint.IsEqualityType | ( | self | ) |