Commit fbee3db2 authored by Marco Amagliani's avatar Marco Amagliani
Browse files

performance improvement in dependnent constraints remval. Repleacing original...

performance improvement in dependnent constraints remval. Repleacing original linear equality constraints with constraints taken form the R matrix of the QR factorization.

[git-p4: depot-paths = "//ReForm/ReForm/main/CoMISo/": change = 13576]
parent 21374c19
......@@ -79,6 +79,8 @@ public:
virtual bool constant_hessian () const { return false;}
virtual bool sparse_hessian() const { return true; }
bool is_linear_equality() const { return is_linear() && type_ == NC_EQUAL; }
virtual double gradient_update_factor( const double* _x, double _eps = 1e-6)
{
double val = eval_constraint(_x);
......
Markdown is supported
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