summaryrefslogtreecommitdiff
path: root/sci_gateway/cpp/sci_LinProg.cpp
diff options
context:
space:
mode:
authorHarpreet2016-02-02 12:43:07 +0530
committerHarpreet2016-02-02 12:43:07 +0530
commit9f3ca8b98840ba9dd78ad62dfef0653aedb1d4b1 (patch)
tree5429ee8d920dfb06feb2b9c357211e827ec316f9 /sci_gateway/cpp/sci_LinProg.cpp
parentf7c5cbc61d5b52c749824298cfa39a95db2d879c (diff)
downloadFOSSEE-Optimization-toolbox-9f3ca8b98840ba9dd78ad62dfef0653aedb1d4b1.tar.gz
FOSSEE-Optimization-toolbox-9f3ca8b98840ba9dd78ad62dfef0653aedb1d4b1.tar.bz2
FOSSEE-Optimization-toolbox-9f3ca8b98840ba9dd78ad62dfef0653aedb1d4b1.zip
linprog help updated
Diffstat (limited to 'sci_gateway/cpp/sci_LinProg.cpp')
-rw-r--r--sci_gateway/cpp/sci_LinProg.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sci_gateway/cpp/sci_LinProg.cpp b/sci_gateway/cpp/sci_LinProg.cpp
index 8a4ec25..95538ec 100644
--- a/sci_gateway/cpp/sci_LinProg.cpp
+++ b/sci_gateway/cpp/sci_LinProg.cpp
@@ -130,7 +130,7 @@ int sci_linearprog(char *fname)
double iterations = Prob->iterCount();
//get reduced cost
- double* reducedCost = Prob->getReducedCost();
+ double* Zl = Prob->getReducedCost();
//get dual vector
double* dual = Prob->getDual();
@@ -139,7 +139,7 @@ int sci_linearprog(char *fname)
returnDoubleMatrixToScilab(2 , 1 , 1 , &objValue);
returnDoubleMatrixToScilab(3 , 1 , 1 , &status);
returnDoubleMatrixToScilab(4 , 1 , 1 , &iterations);
- returnDoubleMatrixToScilab(5 , 1 , nVars , reducedCost);
+ returnDoubleMatrixToScilab(5 , 1 , nVars , Zl);
returnDoubleMatrixToScilab(6 , 1 , nCons , dual);
}