From 436f0daf6e4f241b8fa582a943bad09ddc091f59 Mon Sep 17 00:00:00 2001 From: Harpreet Date: Fri, 11 Dec 2015 12:51:00 +0530 Subject: lsqnonneg added --- help/en_US/scilab_en_US_help/lsqnonneg.html | 106 ++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 help/en_US/scilab_en_US_help/lsqnonneg.html (limited to 'help/en_US/scilab_en_US_help/lsqnonneg.html') diff --git a/help/en_US/scilab_en_US_help/lsqnonneg.html b/help/en_US/scilab_en_US_help/lsqnonneg.html new file mode 100644 index 0000000..4f2f661 --- /dev/null +++ b/help/en_US/scilab_en_US_help/lsqnonneg.html @@ -0,0 +1,106 @@ + + + lsqnonneg + + + +
+ + + + +
+ << lsqlin + + + Symphony Toolbox + + + qpipopt >> + +
+
+
+ + + + Symphony Toolbox >> Symphony Toolbox > lsqnonneg + +

+

lsqnonneg

+

Solves nonnegative least-squares curve fitting problems.

+ + +

Calling Sequence

+
x = lsqnonneg(C,d)
+x = lsqnonneg(C,d,param)
+[xopt,resnorm,residual,exitflag,output,lambda] = lsqnonneg( ... )
+ +

Parameters

+
C : +

a matrix of doubles, represents the multiplier of the solution x in the expression C*x - d. C is M-by-N, where M is the number of equations, and N is the number of elements of x.

+
d : +

a vector of doubles, represents the additive constant term in the expression C*x - d. d is M-by-1, where M is the number of equations.

+
xopt : +

a vector of doubles, the computed solution of the optimization problem.

+
resnorm : +

a double, objective value returned as the scalar value norm(C*x-d)^2.

+
residual : +

a vector of doubles, solution residuals returned as the vector C*x-d.

+
exitflag : +

Integer identifying the reason the algorithm terminated.

+
output : +

Structure containing information about the optimization.

+
lambda : +

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

+ +

Description

+

Solves nonnegative least-squares curve fitting problems specified by :

+

+

We are calling IPOpt for solving the nonnegative least-squares curve fitting problems, IPOpt is a library written in C++. The code has been written by ​Andreas Wächter and ​Carl Laird.

+

+ +

Examples

+
A basic lsqnonneg problem
+C = [
+0.0372    0.2869
+0.6861    0.7071
+0.6233    0.6245
+0.6344    0.6170];
+d = [
+0.8587
+0.1781
+0.0747
+0.8405];
+[xopt,resnorm,residual,exitflag,output,lambda] = lsqnonneg(C,d)
+ +

Authors

+
+
+ +
+ + + + + + +
Report an issue
+ << lsqlin + + + Symphony Toolbox + + + qpipopt >> + +
+
+
+ + -- cgit