From b06abf61dee5373e1f3a4ad02d8e2994249109ed Mon Sep 17 00:00:00 2001 From: Patrice Matz Date: Sat, 9 Dec 2017 21:24:38 +0100 Subject: [PATCH] -fixed things --- SCE/SCE/SCE.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SCE/SCE/SCE.cpp b/SCE/SCE/SCE.cpp index 04737d9..2942979 100644 --- a/SCE/SCE/SCE.cpp +++ b/SCE/SCE/SCE.cpp @@ -90,7 +90,7 @@ void optimization() { 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 z = opt.g_von_theta(lower_bound, upper_bound); @@ -111,7 +111,7 @@ void optimization() else { 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));