summaryrefslogtreecommitdiff
path: root/sci_gateway/cpp/sci_QuadNLP.cpp
diff options
context:
space:
mode:
authorHarpreet2015-10-26 15:46:23 +0530
committerHarpreet2015-10-26 15:46:23 +0530
commit1e82cbeeb97000ce243fb4ef6566d0b554473713 (patch)
treeb9d99d4784c6e6317d67fd9f43baf7f5198a1f53 /sci_gateway/cpp/sci_QuadNLP.cpp
parent4b0ab259b440fa1bb57494dcbdffb865e293b768 (diff)
downloadFOSSEE-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.cpp4
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