Public Member Functions
ifopt::ExConstraint Class Reference

#include <test_vars_constr_cost.h>

Inheritance diagram for ifopt::ExConstraint:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ExConstraint ()
 ExConstraint (const std::string &name)
void FillJacobianBlock (std::string var_set, Jacobian &jac_block) const override
 Set individual Jacobians corresponding to each decision variable set.
VecBound GetBounds () const override
 Returns the "bounds" of this component.
VectorXd GetValues () const override
 Returns the "values" of whatever this component represents.

Detailed Description

Definition at line 104 of file test_vars_constr_cost.h.


Constructor & Destructor Documentation

Definition at line 106 of file test_vars_constr_cost.h.

ifopt::ExConstraint::ExConstraint ( const std::string &  name) [inline]

Definition at line 110 of file test_vars_constr_cost.h.


Member Function Documentation

void ifopt::ExConstraint::FillJacobianBlock ( std::string  var_set,
Jacobian &  jac_block 
) const [inline, override, virtual]

Set individual Jacobians corresponding to each decision variable set.

Parameters:
var_setSet of variables the current Jacobian block belongs to.
jac_blockColumns of the overall Jacobian affected by var_set.

A convenience function so the user does not have to worry about the ordering of variable sets. All that is required is that the user knows the internal ordering of variables in each individual set and provides the Jacobian of the constraints w.r.t. this set (starting at column 0). GetJacobian() then inserts these columns at the correct position in the overall Jacobian.

If the constraint doen't depend on a var_set, this function should simply do nothing.

Implements ifopt::ConstraintSet.

Definition at line 135 of file test_vars_constr_cost.h.

VecBound ifopt::ExConstraint::GetBounds ( ) const [inline, override, virtual]

Returns the "bounds" of this component.

  • For Variable these are the upper and lower variable bound.
  • For Constraint this represents the constraint bounds.
  • For Cost these done't exists (set to infinity).

Implements ifopt::Component.

Definition at line 124 of file test_vars_constr_cost.h.

VectorXd ifopt::ExConstraint::GetValues ( ) const [inline, override, virtual]

Returns the "values" of whatever this component represents.

  • For Variable this represents the actual optimization values.
  • For Constraint this represents the constraint value g.
  • For Cost this represents the cost value.

Implements ifopt::Component.

Definition at line 113 of file test_vars_constr_cost.h.


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


ifopt
Author(s): Alexander W. Winkler
autogenerated on Sat May 18 2019 02:43:08