diff options
author | Harpreet | 2015-10-26 15:46:23 +0530 |
---|---|---|
committer | Harpreet | 2015-10-26 15:46:23 +0530 |
commit | 1e82cbeeb97000ce243fb4ef6566d0b554473713 (patch) | |
tree | b9d99d4784c6e6317d67fd9f43baf7f5198a1f53 /sci_gateway/cpp/sci_QuadNLP.cpp | |
parent | 4b0ab259b440fa1bb57494dcbdffb865e293b768 (diff) | |
download | FOSSEE-Optimization-toolbox-1e82cbeeb97000ce243fb4ef6566d0b554473713.tar.gz FOSSEE-Optimization-toolbox-1e82cbeeb97000ce243fb4ef6566d0b554473713.tar.bz2 FOSSEE-Optimization-toolbox-1e82cbeeb97000ce243fb4ef6566d0b554473713.zip |
initial guess added
Diffstat (limited to 'sci_gateway/cpp/sci_QuadNLP.cpp')
-rw-r--r-- | sci_gateway/cpp/sci_QuadNLP.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sci_gateway/cpp/sci_QuadNLP.cpp b/sci_gateway/cpp/sci_QuadNLP.cpp index ddca7cf..99987a2 100644 --- a/sci_gateway/cpp/sci_QuadNLP.cpp +++ b/sci_gateway/cpp/sci_QuadNLP.cpp @@ -101,8 +101,8 @@ bool QuadNLP::get_starting_point(Index n, bool init_x, Number* x, Index m, bool init_lambda, Number* lambda){ if (init_x == true){ //we need to set initial values for vector x - for (Index var=0;var<n;++var) - x[var]=0.0;//initialize with 0 or we can change. + for (Index var=0;var<n;var++) + x[var]=varGuess_[var];//initialize with 0 or we can change. } if (init_z == true){ //we need to provide initial values for vector bound multipliers |