|
Drake
|
#include <drake/solvers/Optimization.h>
Public Member Functions | |
| DecisionVariableView (const DecisionVariable &var) | |
| Create a view which covers an entire DecisionVariable. More... | |
| DecisionVariableView (const DecisionVariable &var, size_t start, size_t n) | |
| Create a view covering part of a DecisionVariable. More... | |
| size_t | index () const |
| index() More... | |
| size_t | size () const |
| size() More... | |
| Eigen::VectorBlock< const Eigen::VectorXd, Eigen::Dynamic > | value () const |
| value() More... | |
| std::string | name () const |
| bool | covers (size_t var_index) const |
| covers() More... | |
| const DecisionVariableView | operator() (size_t i) const |
| const DecisionVariableView | row (size_t i) const |
| const DecisionVariableView | head (size_t n) const |
| const DecisionVariableView | tail (size_t n) const |
| const DecisionVariableView | segment (size_t start, size_t n) const |
|
inlineexplicit |
Create a view which covers an entire DecisionVariable.
var is aliased, and must remain valid for the lifetime of the view.
|
inline |
Create a view covering part of a DecisionVariable.
var is aliased, and must remain valid for the lifetime of the view.

|
inline |
returns true iff the given index of the enclosing OptimizationProblem is included in this VariableView.

|
inline |
|
inline |
returns the first index of this variable in the entire variable vector for the program

|
inline |

|
inline |
|
inline |
|
inline |
|
inline |
returns the number of elements in the decision variable vector

|
inline |
|
inline |
returns the actual stored value; which is only meaningful after calling solve() in the program.