From 9f3ca8b98840ba9dd78ad62dfef0653aedb1d4b1 Mon Sep 17 00:00:00 2001
From: Harpreet
Date: Tue, 2 Feb 2016 12:43:07 +0530
Subject: linprog help updated
---
help/en_US/linprog.xml | 1 +
help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS | Bin 8644 -> 8644 bytes
.../en_US/scilab_en_US_help/JavaHelpSearch/OFFSETS | Bin 304 -> 304 bytes
.../scilab_en_US_help/JavaHelpSearch/POSITIONS | Bin 47502 -> 47520 bytes
help/en_US/scilab_en_US_help/linprog.html | 3 ++-
jar/scilab_en_US_help.jar | Bin 270331 -> 270359 bytes
macros/linprog.bin | Bin 29644 -> 30012 bytes
macros/linprog.sci | 1 +
macros/matrix_linprog.bin | Bin 31128 -> 31100 bytes
macros/matrix_linprog.sci | 4 ++--
sci_gateway/cpp/LinCLP.hpp | 8 +++++---
sci_gateway/cpp/libFOSSEE_Optimization_Toolbox.so | Bin 199050 -> 199050 bytes
sci_gateway/cpp/sci_LinCLP.cpp | 6 +++---
sci_gateway/cpp/sci_LinProg.cpp | 4 ++--
14 files changed, 16 insertions(+), 11 deletions(-)
diff --git a/help/en_US/linprog.xml b/help/en_US/linprog.xml
index 47dd715..c293b7e 100755
--- a/help/en_US/linprog.xml
+++ b/help/en_US/linprog.xml
@@ -123,6 +123,7 @@ The lambda data structure contains the Lagrange multipliers at the end
of optimization. In the current version the values are returned only when the the solution is optimal.
It has type "struct" and contains the following fields.
+lambda.lower: The Lagrange multipliers for variable lower bounds.
lambda.eqlin: The Lagrange multipliers for the linear equality constraints.
lambda.ineqlin: The Lagrange multipliers for the linear inequality constraints.
diff --git a/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS b/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS
index 8d14e4f..b948b9f 100644
Binary files a/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS and b/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS differ
diff --git a/help/en_US/scilab_en_US_help/JavaHelpSearch/OFFSETS b/help/en_US/scilab_en_US_help/JavaHelpSearch/OFFSETS
index 070a255..ee68e51 100644
Binary files a/help/en_US/scilab_en_US_help/JavaHelpSearch/OFFSETS and b/help/en_US/scilab_en_US_help/JavaHelpSearch/OFFSETS differ
diff --git a/help/en_US/scilab_en_US_help/JavaHelpSearch/POSITIONS b/help/en_US/scilab_en_US_help/JavaHelpSearch/POSITIONS
index 2019f3f..0bf9a64 100644
Binary files a/help/en_US/scilab_en_US_help/JavaHelpSearch/POSITIONS and b/help/en_US/scilab_en_US_help/JavaHelpSearch/POSITIONS differ
diff --git a/help/en_US/scilab_en_US_help/linprog.html b/help/en_US/scilab_en_US_help/linprog.html
index c47e448..157265a 100644
--- a/help/en_US/scilab_en_US_help/linprog.html
+++ b/help/en_US/scilab_en_US_help/linprog.html
@@ -100,7 +100,8 @@ It has type "struct" and contains the following fields.
The lambda data structure contains the Lagrange multipliers at the end
of optimization. In the current version the values are returned only when the the solution is optimal.
It has type "struct" and contains the following fields.
-
- lambda.eqlin: The Lagrange multipliers for the linear equality constraints.
+- lambda.lower: The Lagrange multipliers for variable lower bounds.
+- lambda.eqlin: The Lagrange multipliers for the linear equality constraints.
- lambda.ineqlin: The Lagrange multipliers for the linear inequality constraints.
diff --git a/jar/scilab_en_US_help.jar b/jar/scilab_en_US_help.jar
index 88b99f5..e241e4c 100644
Binary files a/jar/scilab_en_US_help.jar and b/jar/scilab_en_US_help.jar differ
diff --git a/macros/linprog.bin b/macros/linprog.bin
index 12a9f7d..1d3a5aa 100644
Binary files a/macros/linprog.bin and b/macros/linprog.bin differ
diff --git a/macros/linprog.sci b/macros/linprog.sci
index 5b12241..c7df21b 100644
--- a/macros/linprog.sci
+++ b/macros/linprog.sci
@@ -84,6 +84,7 @@ function [xopt,fopt,exitflag,output,lambda] = linprog (varargin)
// of optimization. In the current version the values are returned only when the the solution is optimal.
// It has type "struct" and contains the following fields.
//
+ // lambda.lower: The Lagrange multipliers for variable lower bounds.
// lambda.eqlin: The Lagrange multipliers for the linear equality constraints.
// lambda.ineqlin: The Lagrange multipliers for the linear inequality constraints.
//
diff --git a/macros/matrix_linprog.bin b/macros/matrix_linprog.bin
index ac4d8d9..e3a9db3 100644
Binary files a/macros/matrix_linprog.bin and b/macros/matrix_linprog.bin differ
diff --git a/macros/matrix_linprog.sci b/macros/matrix_linprog.sci
index c1f53a0..daf4168 100755
--- a/macros/matrix_linprog.sci
+++ b/macros/matrix_linprog.sci
@@ -206,11 +206,11 @@ function [xopt,fopt,exitflag,output,lambda] = matrix_linprog (varargin)
output.Iterations = iter;
output.constrviolation = max([0;norm(Aeq*xopt-beq, 'inf');(lb-xopt);(xopt-ub);(A*xopt-b)]);
- lambda = struct("reduced_cost" , [], ..
+ lambda = struct("lower" , [], ..
"ineqlin" , [], ..
"eqlin" , []);
- lambda.reduced_cost = Zl;
+ lambda.lower = Zl;
lambda.eqlin = dual(1:nbConEq);
lambda.ineqlin = dual(nbConEq+1:nbCon);
select status
diff --git a/sci_gateway/cpp/LinCLP.hpp b/sci_gateway/cpp/LinCLP.hpp
index 90964f4..bd08505 100755
--- a/sci_gateway/cpp/LinCLP.hpp
+++ b/sci_gateway/cpp/LinCLP.hpp
@@ -43,13 +43,15 @@ class LinCLP
double objValue_ =0 ; //Optimal values of objective
- double status_ = 0; //Return Status
+ double status_ = 0; //Return Status
double iterations_ = 0; //Number of iteration
- double* reducedCost_ = NULL; //Reduced cost
+ double* Zl_ = NULL; //Reduced cost
- double* dual_ = NULL; // Dual of the solution
+ double* Zu_ = NULL; //Reduced cost
+
+ double* dual_ = NULL; // Dual of the solution
public:
diff --git a/sci_gateway/cpp/libFOSSEE_Optimization_Toolbox.so b/sci_gateway/cpp/libFOSSEE_Optimization_Toolbox.so
index 1f7e424..3cf9d8a 100755
Binary files a/sci_gateway/cpp/libFOSSEE_Optimization_Toolbox.so and b/sci_gateway/cpp/libFOSSEE_Optimization_Toolbox.so differ
diff --git a/sci_gateway/cpp/sci_LinCLP.cpp b/sci_gateway/cpp/sci_LinCLP.cpp
index 7996bfc..41f004d 100644
--- a/sci_gateway/cpp/sci_LinCLP.cpp
+++ b/sci_gateway/cpp/sci_LinCLP.cpp
@@ -26,7 +26,7 @@ LinCLP::~LinCLP()
free(lb_);
free(ub_);
free(xValue_);
- free(reducedCost_);
+ free(Zl_);
free(dual_);}
//Clp Solver function definition
@@ -104,8 +104,8 @@ LinCLP::LinCLP(int numVars_ , int numCons_ ,double objMatrix_[] , double conMatr
//get lower vector
const double* LinCLP::getReducedCost()
{
- reducedCost_ = si->getReducedCost();
- return reducedCost_;
+ Zl_ = si->getReducedCost();
+ return Zl_;
}
//get dual vector
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);
}
--
cgit