Commit 5fd3c20c authored by Robin Brost's avatar Robin Brost
Browse files

small fixes

parent 75754761
...@@ -84,7 +84,7 @@ public: ...@@ -84,7 +84,7 @@ public:
} }
// advanced properties // advanced properties
virtual bool constant_hessian() const { return true; } virtual bool constant_hessian() const { return false; }
std::vector<double> solution; std::vector<double> solution;
}; };
...@@ -105,7 +105,7 @@ int main(void) ...@@ -105,7 +105,7 @@ int main(void)
b.resize(n_constraints); b.resize(n_constraints);
b.setZero(); b.setZero();
// first constraint: first variable equals two times second // first constraint: first variable equals three times second
A.coeffRef(0,0) = 1; A.coeffRef(0,0) = 1;
A.coeffRef(0,1) = -3; A.coeffRef(0,1) = -3;
b.coeffRef(0) = 0; b.coeffRef(0) = 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment