Stores and evaluates box constraints within optimal control problems. More...
#include <box_constraint.hpp>
Public Member Functions | |
BoxConstraint () | |
BoxConstraint (const BoxConstraint &rhs) | |
returnValue | init (const Grid &grid_) |
BoxConstraint & | operator= (const BoxConstraint &rhs) |
virtual | ~BoxConstraint () |
Protected Member Functions | |
void | deleteAll () |
returnValue | evaluateBounds (const OCPiterate &iter) |
virtual returnValue | getBounds (const OCPiterate &iter) |
Protected Attributes | |
DVector ** | blb |
DVector ** | bub |
Grid | grid |
int * | index |
int | nb |
DMatrix * | residuumPL |
DMatrix * | residuumPU |
DMatrix * | residuumUL |
DMatrix * | residuumUU |
DMatrix * | residuumWL |
DMatrix * | residuumWU |
DMatrix * | residuumXAL |
DMatrix * | residuumXAU |
DMatrix * | residuumXL |
DMatrix * | residuumXU |
VariableType * | var |
Stores and evaluates box constraints within optimal control problems.
The class BoxConstraint allows to manage and evaluate box (path) constraints (simple upper or lower bounds) on the optimization variables within optimal control problems.
Definition at line 59 of file box_constraint.hpp.
BEGIN_NAMESPACE_ACADO BoxConstraint::BoxConstraint | ( | ) |
Default constructor.
Definition at line 46 of file box_constraint.cpp.
BoxConstraint::BoxConstraint | ( | const BoxConstraint & | rhs | ) |
Copy constructor (deep copy).
Definition at line 95 of file box_constraint.cpp.
|
virtual |
Destructor.
Definition at line 134 of file box_constraint.cpp.
|
protected |
Protected destructor.
Definition at line 140 of file box_constraint.cpp.
|
protected |
Definition at line 218 of file box_constraint.cpp.
|
inlineprotectedvirtual |
Writes a special copy of the bounds that is needed within the OptimizationAlgorithm into the optimization variables.
Reimplemented in Constraint.
Definition at line 369 of file box_constraint.cpp.
returnValue BoxConstraint::init | ( | const Grid & | grid_ | ) |
Initialization Routine.
Definition at line 67 of file box_constraint.cpp.
BoxConstraint & BoxConstraint::operator= | ( | const BoxConstraint & | rhs | ) |
Assignment operator (deep copy).
Definition at line 168 of file box_constraint.cpp.
|
protected |
lower bounds
Definition at line 117 of file box_constraint.hpp.
|
protected |
upper bounds
Definition at line 118 of file box_constraint.hpp.
|
protected |
the grid
Definition at line 110 of file box_constraint.hpp.
|
protected |
component of the variable
Definition at line 116 of file box_constraint.hpp.
|
protected |
counts the number of bounds
Definition at line 114 of file box_constraint.hpp.
|
protected |
residuum of the parameters to the lower bound
Definition at line 124 of file box_constraint.hpp.
|
protected |
residuum of the parameters to the upper bound
Definition at line 125 of file box_constraint.hpp.
|
protected |
residuum of the controls to the lower bound
Definition at line 126 of file box_constraint.hpp.
|
protected |
residuum of the controls to the upper bound
Definition at line 127 of file box_constraint.hpp.
|
protected |
residuum of the disturbances to the lower bound
Definition at line 128 of file box_constraint.hpp.
|
protected |
residuum of the disturbances to the upper bound
Definition at line 129 of file box_constraint.hpp.
|
protected |
residuum of the algebraic states to the lower bound
Definition at line 122 of file box_constraint.hpp.
|
protected |
residuum of the algebraic states to the upper bound
Definition at line 123 of file box_constraint.hpp.
|
protected |
residuum of the differential states to the lower bound
Definition at line 120 of file box_constraint.hpp.
|
protected |
residuum of the differential states to the upper bound
Definition at line 121 of file box_constraint.hpp.
|
protected |
variable types
Definition at line 115 of file box_constraint.hpp.