diff options
author | harpreet | 2016-07-01 00:11:55 +0530 |
---|---|---|
committer | harpreet | 2016-07-01 00:11:55 +0530 |
commit | 89b96cb79cbe75ba8c1afea61b3caca37a083f62 (patch) | |
tree | 1b879fb0dce2406c1c49bf5bdabcedfb12ff020c /sci_gateway/cpp/sci_QuadNLP.cpp | |
parent | 10e2e4d8b4a7592a8631ddac8e8d1664d6f0b9e3 (diff) | |
download | FOSSEE-Optimization-toolbox-89b96cb79cbe75ba8c1afea61b3caca37a083f62.tar.gz FOSSEE-Optimization-toolbox-89b96cb79cbe75ba8c1afea61b3caca37a083f62.tar.bz2 FOSSEE-Optimization-toolbox-89b96cb79cbe75ba8c1afea61b3caca37a083f62.zip |
Windows Included
Diffstat (limited to 'sci_gateway/cpp/sci_QuadNLP.cpp')
-rw-r--r-- | sci_gateway/cpp/sci_QuadNLP.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sci_gateway/cpp/sci_QuadNLP.cpp b/sci_gateway/cpp/sci_QuadNLP.cpp index b1a0e04..8ec6f40 100644 --- a/sci_gateway/cpp/sci_QuadNLP.cpp +++ b/sci_gateway/cpp/sci_QuadNLP.cpp @@ -10,7 +10,11 @@ // Email: toolbox@scilab.in #include "QuadNLP.hpp" -#include "IpIpoptData.hpp" +#include <IpIpoptApplication.hpp> +#include <IpSolveStatistics.hpp> +#include <IpTNLP.hpp> +#include <IpIpoptCalculatedQuantities.hpp> +#include <IpSmartPtr.hpp> extern "C"{ #include <api_scilab.h> @@ -18,7 +22,11 @@ extern "C"{ #include <BOOL.h> #include <localization.h> #include <sciprint.h> - +#if defined(_MSC_VER) +#include "config_ipopt.h" +#else +#include "IpoptConfig.h" +#endif double x_static,i, *op_obj_x = NULL,*op_obj_value = NULL; @@ -214,9 +222,6 @@ void QuadNLP::finalize_solution(SolverReturn status, finalObjVal_ = obj_value; status_ = status; - if (status_ == 0 | status_ == 1 | status_ == 2){ - iter_ = ip_data->iter_count(); - } } const double * QuadNLP::getX() @@ -244,11 +249,6 @@ void QuadNLP::finalize_solution(SolverReturn status, return finalObjVal_; } - double QuadNLP::iterCount() - { - return (double)iter_; - } - int QuadNLP::returnStatus() { return status_; |