From 79583a44468943fad22ba1de2dd25dd86f7be167 Mon Sep 17 00:00:00 2001 From: Harpreet Date: Tue, 22 Dec 2015 14:51:05 +0530 Subject: Bugs by prof fixed 2 --- help/en_US/scilab_en_US_help/lsqlin.html | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'help/en_US/scilab_en_US_help/lsqlin.html') diff --git a/help/en_US/scilab_en_US_help/lsqlin.html b/help/en_US/scilab_en_US_help/lsqlin.html index bf5a259..b371871 100644 --- a/help/en_US/scilab_en_US_help/lsqlin.html +++ b/help/en_US/scilab_en_US_help/lsqlin.html @@ -37,11 +37,11 @@

Calling Sequence

-
x = lsqlin(C,d,A,b)
-x = lsqlin(C,d,A,b,Aeq,beq)
-x = lsqlin(C,d,A,b,Aeq,beq,lb,ub)
-x = lsqlin(C,d,A,b,Aeq,beq,lb,ub,x0)
-x = lsqlin(C,d,A,b,Aeq,beq,lb,ub,x0,param)
+   
xopt = lsqlin(C,d,A,b)
+xopt = lsqlin(C,d,A,b,Aeq,beq)
+xopt = lsqlin(C,d,A,b,Aeq,beq,lb,ub)
+xopt = lsqlin(C,d,A,b,Aeq,beq,lb,ub,x0)
+xopt = lsqlin(C,d,A,b,Aeq,beq,lb,ub,x0,param)
 [xopt,resnorm,residual,exitflag,output,lambda] = lsqlin( ... )

Parameters

@@ -74,14 +74,14 @@
exitflag :

Integer identifying the reason the algorithm terminated.

output : -

Structure containing information about the optimization.

+

Structure containing information about the optimization. Right now it contains number of iteration.

lambda : -

Structure containing the Lagrange multipliers at the solution x (separated by constraint type).

+

Structure containing the Lagrange multipliers at the solution x (separated by constraint type).It contains lower, upper and linear equality, inequality constraints.

Description

Search the minimum of a constrained linear least square problem specified by :

-

We are calling IPOpt for solving the linear least square problem, IPOpt is a library written in C++. The code has been written by ​Andreas Wächter and ​Carl Laird.

+

We are calling IPOpt for solving the linear least square problem, IPOpt is a library written in C++.

Examples

@@ -102,10 +102,12 @@ b = [0.5251 0.2026 0.6721]; -[xopt,resnorm,residual,exitflag,output,lambda] = lsqlin(C,d,A,b)
+[xopt,resnorm,residual,exitflag,output,lambda] = lsqlin(C,d,A,b) +// Press ENTER to continue

Examples

-
C = [0.9501    0.7620    0.6153    0.4057
+   
//A basic example for equality, inequality and bounds
+C = [0.9501    0.7620    0.6153    0.4057
 0.2311    0.4564    0.7919    0.9354
 0.6068    0.0185    0.9218    0.9169
 0.4859    0.8214    0.7382    0.4102
-- 
cgit