class
#include <ScsEigen/LinearCost.h>
LinearCost Contents
LinearCost is a concrete implementation of Cost. It implements a cost of the form
where is the optimization variable, and
Base classes
- class Cost
Constructors, destructors, conversion operators
- LinearCost() defaulted
- Constructor.
- LinearCost(const Eigen::Ref<const Eigen::VectorXd>& a, double b = 0)
- Constructor.
Public functions
Function documentation
ScsEigen:: LinearCost:: LinearCost() defaulted
Constructor.
ScsEigen:: LinearCost:: LinearCost(const Eigen::Ref<const Eigen::VectorXd>& a,
double b = 0)
Constructor.
Parameters | |
---|---|
a | the vector . |
b | optional parameter. If not provided the is set to zero. |
bool ScsEigen:: LinearCost:: setA(const Eigen::Ref<const Eigen::VectorXd>& a)
Set the vector .
Parameters | |
---|---|
a | the vector . |
Returns | true/false in case of success/failure. |