diff options
author | harpreet | 2016-04-06 10:46:05 +0530 |
---|---|---|
committer | harpreet | 2016-04-06 10:46:05 +0530 |
commit | 8484c85784b84cc3a9257f8d8065b3a8a7800628 (patch) | |
tree | c508e843855e75529056e06992b7ef43939f52b9 /sci_gateway/cpp/sci_minconNLP.cpp | |
parent | 7cf9300c2eb4773afa9823cf4a179d43f70001aa (diff) | |
download | symphony-8484c85784b84cc3a9257f8d8065b3a8a7800628.tar.gz symphony-8484c85784b84cc3a9257f8d8065b3a8a7800628.tar.bz2 symphony-8484c85784b84cc3a9257f8d8065b3a8a7800628.zip |
qpiopt updated
Diffstat (limited to 'sci_gateway/cpp/sci_minconNLP.cpp')
-rw-r--r-- | sci_gateway/cpp/sci_minconNLP.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sci_gateway/cpp/sci_minconNLP.cpp b/sci_gateway/cpp/sci_minconNLP.cpp index 600aed6..845e983 100644 --- a/sci_gateway/cpp/sci_minconNLP.cpp +++ b/sci_gateway/cpp/sci_minconNLP.cpp @@ -500,9 +500,17 @@ bool minconNLP::eval_h(Index n, const Number* x, bool new_x,Number obj_factor, I finalHessian_[n*row+col]=values[index++]; } } + + index=0; + for (Index col=0;col < numVars_ ;++col) + { + for (Index row=0; row <= col; ++row) + { + finalHessian_[n*row+col]=values[index++]; + } + } } - return true; } @@ -586,5 +594,3 @@ int minconNLP::returnStatus() } - - |