|
HQP
1.9.6
|
Internally used single dependent variable. More...
#include <Omu_Deps.h>
Public Member Functions | |
| const Omu_Dep & | operator= (const Real &value) |
| Assign a new value. | |
| void | size (int nx, int nu, int nxf) |
| Allocate gradients for given numbers of independent variables. | |
| void | analyze_struct () |
| Analyze dependencies after setup process. | |
Implementation of Omu_Dependent interface | |
| void | set_linear (int wrt=Omu_Dependent::WRT_ALL, bool value=true) |
| Mark a linear dependency. | |
| bool | is_linear (int wrt=Omu_Dependent::WRT_ALL) const |
| Query if a dependency is linear. | |
Public Member Functions inherited from Omu_Dependent | |
| const Omu_Dependent & | operator= (const Real &value) |
| Assign a new value. | |
| operator Real & () | |
| Convert to ordinary Real. | |
| void | set_required_g (bool value=true) |
| Set flag indicating that gradients are required. | |
| bool | is_required_g () const |
| Query if gradients are required when evaluating the dependent. | |
Public Attributes | |
| bool | c_setup |
| indicate setup process (call to set_linear* allowed) | |
Public Attributes inherited from Omu_Dependent | |
| Omu_Gradient | gx |
| gradient wrt x (ie initial states of period) | |
| Omu_Gradient | gu |
| gradient wrt u (ie control parameters of stage) | |
| Omu_Gradient | gxf |
| gradient wrt xf (ie final states of period) | |
Protected Member Functions | |
| Omu_Dep (const Omu_Dep &cv) | |
| Omu_Dep & | operator= (const Omu_Dep &) |
Protected Member Functions inherited from Omu_Dependent | |
| Omu_Dependent (const Omu_Dependent &) | |
| Omu_Dependent & | operator= (const Omu_Dependent &) |
Protected Attributes | |
| int | _linear_flags |
Protected Attributes inherited from Omu_Dependent | |
| Real | _value |
| bool | _required_g |
Additional Inherited Members | |
Static Public Attributes inherited from Omu_Dependent | |
| static const int | WRT_x |
| dependent with respect to x | |
| static const int | WRT_u |
| dependent with respect to u | |
| static const int | WRT_dx |
| dependent with respect to dx | |
| static const int | WRT_xf |
| dependent with respect to xf | |
| static const int | WRT_q |
| dependent with respect to sens pars q | |
| static const int | WRT_ALL |
| dependent with respect to all variables | |
Internally used single dependent variable.