diff options
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 |