11 , _weight(VectorXd::Ones(f->getDimension()))
33 std::stringstream errorStream;
34 errorStream <<
"[SquaredLinearFunction::changeWeight] weight has dimension: " << weight.size() <<
" and should be: " <<
_f->
getDimension()<<
".\n";
35 std::string errorString = errorStream.str();
36 throw std::runtime_error(errorString);
97 _weight.head(oldWeight.size()) = oldWeight;
110 MatrixXd A(2,3); A << 1,0,0, 0,1,1;
111 VectorXd b(2); b << 1,0;
115 VectorXd v(3); v << 1,2,1;
118 std::cout << sqf.
getValue() << std::endl;
124 VectorXd vy(3); vy << 1,2,1;
129 vy.resize(4); vy << 1,2,1,0;
Computation ability of a ocra function.
void invalidateq(int timestamp)
void inhibitPropagationFrom_q_or_r() const
void setValue(const VectorXd &value)
Declaration file of the SquaredLinearFunction class.
void doUpdateInputSizeBegin()
Optimization-based Robot Controller namespace. a library of classes to write and solve optimization p...
void testSquaredLinearFunction()
const MatrixXd & getJacobian() const
std::vector< VectorXd * > _q
const VectorXd & getb() const
SquaredLinearFunction class.
LinearFunction & getFunction()
const VectorXd & getValue() const
Declaration file of the DiagonalLinearFunction class.
void resize(size_t newSize)
const MatrixXd & getA() const
void changeWeight(const VectorXd &weight)
void changeConvexityProperty(eFunctionConvexity newProperty)
void invalidater(int timestamp)
void disconnect(Derived &object, void(Base::*callbackToErase)(int)) const
Disconnect non-static method.
void connect(Derived &object, void(Base::*newCallback)(int)) const
Call this method to register a non-static method as a callback.
void updateHessian() const
Implements a basic variable.
DiagonalLinearFunction class.