1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2025-12-30 00:24:44 +00:00

interface to GSL minimisers

This commit is contained in:
2016-04-12 20:10:37 +01:00
parent 8683721c5a
commit 9bf538dfca
14 changed files with 517 additions and 59 deletions

View File

@@ -44,6 +44,11 @@ void NloptMinimizer::setAlgorithm(const Algorithm algorithm)
algorithm_ = algorithm;
}
bool NloptMinimizer::supportLimits(void) const
{
return true;
}
// minimization ////////////////////////////////////////////////////////////////
const DVec & NloptMinimizer::operator()(const DoubleFunction &f)
{
@@ -75,7 +80,7 @@ const DVec & NloptMinimizer::operator()(const DoubleFunction &f)
min.set_lower_bounds(lb);
min.set_upper_bounds(hb);
// minimise
// minimize
double res;
vector<double> vx(x.size());
nlopt::result status;