Class OptvarHelper

Nested Relationships

Class Documentation

class OptvarHelper

This class manages the serialization of the optimization vector x from an ordered set of variables yi.

Then, it allows to get affine mappings corresponding to all defined variables yi for using inside tasks/constraints.

Public Types

typedef std::vector<std::pair<std::string, int>> VariableVector

Public Functions

OptvarHelper(VariableVector name_size_pairs)
AffineHelper getVariable(std::string name) const
std::vector<AffineHelper> getAllVariables() const
int getSize() const