mirror of https://github.com/Askill/AP-SCE.git
-fixed things
This commit is contained in:
parent
00cbbe80f2
commit
b06abf61de
|
|
@ -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));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue