HQP  1.9.7
Omu_Dep Class Reference

Internally used single dependent variable. More...

#include <Omu_Deps.h>

Inheritance diagram for Omu_Dep:
[legend]

Public Member Functions

const Omu_Depoperator= (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_Dependentoperator= (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_Depoperator= (const Omu_Dep &)
 
- Protected Member Functions inherited from Omu_Dependent
 Omu_Dependent (const Omu_Dependent &)
 
Omu_Dependentoperator= (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
 

Detailed Description

Internally used single dependent variable.


The documentation for this class was generated from the following file: