-fixed things

This commit is contained in:
Patrice Matz 2017-12-09 21:24:38 +01:00
parent 00cbbe80f2
commit b06abf61de
1 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ void optimization()
{ {
OPTIMIZATION opt; OPTIMIZATION opt;
long double lower_bound = -2, upper_bound = 2; //upper / lower - _bounds instead of theta-vector long double lower_bound = -2, upper_bound = -2; //upper / lower - _bounds instead of theta-vector
long double increments = 0.1; long double increments = 0.1;
long double z = opt.g_von_theta(lower_bound, upper_bound); long double z = opt.g_von_theta(lower_bound, upper_bound);
@ -111,7 +111,7 @@ void optimization()
else else
{ {
thetanew.at(0) = lower_bound; thetanew.at(0) = lower_bound;
thetanew.at(1) = upper_bound - increments; thetanew.at(1) = upper_bound + increments;
} }
long double znew = opt.g_von_theta(thetanew.at(0), thetanew.at(1)); long double znew = opt.g_von_theta(thetanew.at(0), thetanew.at(1));