aboutsummaryrefslogtreecommitdiffstats
path: root/src/opti.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/opti.cpp')
-rw-r--r--src/opti.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/opti.cpp b/src/opti.cpp
index 1b5df1d..702e8c2 100644
--- a/src/opti.cpp
+++ b/src/opti.cpp
@@ -41,17 +41,17 @@ int main() {
opt.set_xtol_rel(1e-4);
std::vector<double> x(16,0);
- std::vector<double> g();
+ std::vector<double> g(0);
- std::cout<<"valeur au début"<<f(x, g, &params)<<std::endl;
+ std::cout<<"valeur au début : "<<f(x, g, &params)<<std::endl;
double maxf;
nlopt::result result = opt.optimize(x, maxf);
for(int i=0; i<16; i++){
std::cout<<x[i]<<std::endl;
}
- std::cout<<"valeur à la fin"<<maxf<<std::endl;
+ std::cout<<"valeur à la fin : "<<maxf<<std::endl;
return 0;
}