diff options
| author | Bertrand <bertrand.horel@gmail.com> | 2016-02-21 14:26:26 +0000 |
|---|---|---|
| committer | Bertrand <bertrand.horel@gmail.com> | 2016-02-21 14:26:26 +0000 |
| commit | 045fc28b3432e07f3d9702150a56f21e7650f12a (patch) | |
| tree | 6465e412bdb9ac2c45eaa4434a9897925e620622 /src/opti.cpp | |
| parent | bb210dbdc524ad51927a9932638078ddb1383bb6 (diff) | |
| download | projet_C++-045fc28b3432e07f3d9702150a56f21e7650f12a.tar.gz | |
modif du Makefile et de var_alea et autres
Diffstat (limited to 'src/opti.cpp')
| -rw-r--r-- | src/opti.cpp | 6 |
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, ¶ms)<<std::endl; + std::cout<<"valeur au début : "<<f(x, g, ¶ms)<<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; } |
