Base class for Sequantial Quadratic Programming (SQP) methods. More...
Public Member Functions | |
TypeName ("SQPBase") | |
Runtime type information. More... | |
SQPBase (const fvMesh &mesh, const dictionary &dict, autoPtr< designVariables > &designVars, const updateMethod &UpdateMethod, const word &type) | |
Construct from components. More... | |
virtual | ~SQPBase ()=default |
Destructor. More... | |
virtual bool | addToFile (Ostream &os) const |
Write continuation info. More... | |
virtual bool | writeMeritFunction (const updateMethod &UpdateMethod) |
Write info about the merit function. More... | |
Public Member Functions inherited from constrainedOptimisationMethod | |
TypeName ("constrainedOptimisationMethod") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, constrainedOptimisationMethod, dictionary,(const fvMesh &mesh, const dictionary &dict, autoPtr< designVariables > &designVars, const label nConstraints, const word &type),(mesh, dict, designVars, nConstraints, type)) | |
constrainedOptimisationMethod (const fvMesh &mesh, const dictionary &dict, autoPtr< designVariables > &designVars, const label nConstraints, const word &type) | |
Construct from components. More... | |
virtual | ~constrainedOptimisationMethod ()=default |
Destructor. More... | |
Protected Member Functions | |
virtual scalar | meritFunctionConstraintPart () const =0 |
Get the part the merit function that depends on the constraints. More... | |
Protected Attributes | |
scalarField | LagrangianDerivatives_ |
Derivatives of the Lagrangian function. More... | |
List< scalarField > | constraintDerivativesOld_ |
The previous constraint derivatives. More... | |
scalarField | lamdas_ |
Lagrange multipliers. More... | |
fileName | objFunctionFolder_ |
Name of the objective folder. More... | |
autoPtr< OFstream > | meritFunctionFile_ |
File including the l1 merit function. More... | |
scalar | mu_ |
Penalty value for the merit function. More... | |
scalar | delta_ |
Safety factor. More... | |
Base class for Sequantial Quadratic Programming (SQP) methods.
SQPBase | ( | const fvMesh & | mesh, |
const dictionary & | dict, | ||
autoPtr< designVariables > & | designVars, | ||
const updateMethod & | UpdateMethod, | ||
const word & | type | ||
) |
Construct from components.
Definition at line 38 of file SQPBase.C.
References forAll, dictionary::found(), Foam::mkDir(), and Foam::name().
|
virtualdefault |
Destructor.
|
protectedpure virtual |
Get the part the merit function that depends on the constraints.
Implemented in ISQP.
TypeName | ( | "SQPBase" | ) |
Runtime type information.
|
virtual |
Write continuation info.
Definition at line 102 of file SQPBase.C.
References SQPBase::constraintDerivativesOld_, forAll, SQPBase::lamdas_, Foam::name(), os(), and Field< Type >::writeEntry().
Referenced by SQP::writeData(), and ISQP::writeData().
|
virtual |
Write info about the merit function.
Definition at line 115 of file SQPBase.C.
References IOstream::defaultPrecision(), Foam::endl(), forAll, updateMethod::getConstraintValues(), updateMethod::getCycle(), updateMethod::getObjectiveValue(), UPstream::master(), and Foam::setw().
Referenced by SQP::writeAuxiliaryData(), and ISQP::writeAuxiliaryData().
|
protected |
|
protected |
The previous constraint derivatives.
Definition at line 66 of file SQPBase.H.
Referenced by SQPBase::addToFile().
|
protected |
|
protected |