Commit 104ad7c6 authored by David Bommes's avatar David Bommes
Browse files

added max_feasible_step support to CombinedProblem

parent 6bef7e44
Pipeline #3501 passed with stage
in 6 minutes and 26 seconds
......@@ -73,6 +73,12 @@ bool CombinedProblem::constant_hessian() const
return (p1_->constant_hessian() && p2_->constant_hessian());
}
double CombinedProblem::max_feasible_step ( const double* _x, const double* _v)
{
return std::min(p1_->max_feasible_step(_x,_v), p2_->max_feasible_step(_x,_v));
}
//=============================================================================
} // namespace COMISO
//=============================================================================
......
......@@ -67,6 +67,7 @@ public:
// advanced properties
virtual bool constant_gradient() const;
virtual bool constant_hessian() const;
virtual double max_feasible_step ( const double* _x, const double* _v);
private:
......
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