HQP  1.9.6
Omu_OptVarVec Class Reference

Extend Omu_VariableVec with attributes for optimization criterion. More...

#include <Prg_SFunctionOpt.h>

Inheritance diagram for Omu_OptVarVec:
[legend]

Public Member Functions

 Omu_OptVarVec ()
 allocate empty vectors
 
virtual ~Omu_OptVarVec ()
 destroy vectors
 
virtual void resize (int n)
 resize and initialize vectors
 
- Public Member Functions inherited from Omu_VariableVec
 Omu_VariableVec ()
 allocate empty vectors
 
virtual ~Omu_VariableVec ()
 destroy vectors
 
virtual void alloc (int n, int n_expand=-1)
 Allocate vectors of size n_expand for min, max, initial, and this (default n_expand = n). More...
 
int n () const
 Number of variables treated by the optimizer, n <= n_expand = dim. More...
 
- Public Member Functions inherited from Omu_Vec
 Omu_Vec ()
 allocate empty vector
 
virtual ~Omu_Vec ()
 destroy vector
 
void resize (int dim)
 resize vector
 
- Public Member Functions inherited from Mesch::VECP
 VECP ()
 
 VECP (VEC *cv)
 
VEC * operator= (VEC *nv)
 
Real & operator[] (int j)
 
VEC * operator-> ()
 
 operator VEC * ()
 
 operator const VEC * ()
 
const Real & operator[] (int j) const
 
const VEC * operator-> () const
 
 operator const VEC * () const
 

Public Attributes

VECP weight1
 weight for linear objective term (default: 0.0)
 
VECP weight2
 weight for quadratic objective term (default: 0.0)
 
VECP ref
 reference value for quadratic term (default: 0.0)
 
IVECP active
 indicate used variables (default: 0 – not used)
 
- Public Attributes inherited from Omu_VariableVec
VECP min
 minimal permitted values (default: -Inf)
 
VECP max
 maximal permitted values (default: +Inf)
 
VECP initial
 initial values (default: 0.0)
 
IVECP integer
 integer variables (default: 0)
 

Additional Inherited Members

- Protected Member Functions inherited from Omu_Vec
 Omu_Vec (const Omu_Vec &v)
 protect copy constructor and operator= as they should not be used
 
Omu_Vecoperator= (const Omu_Vec &v)
 
- Protected Attributes inherited from Mesch::VECP
VEC * _v
 wrapped VEC*
 

Detailed Description

Extend Omu_VariableVec with attributes for optimization criterion.


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