From 03241d180c9d65fa1e75ceac4c257df44438a1ce Mon Sep 17 00:00:00 2001 From: Harpreet Date: Wed, 24 Feb 2016 16:22:06 +0530 Subject: fmincon examples added --- help/en_US/scilab_en_US_help/sym_addConstr.html | 91 +++++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 help/en_US/scilab_en_US_help/sym_addConstr.html (limited to 'help/en_US/scilab_en_US_help/sym_addConstr.html') diff --git a/help/en_US/scilab_en_US_help/sym_addConstr.html b/help/en_US/scilab_en_US_help/sym_addConstr.html new file mode 100644 index 0000000..230d2f8 --- /dev/null +++ b/help/en_US/scilab_en_US_help/sym_addConstr.html @@ -0,0 +1,91 @@ + + + sym_addConstr + + + +
+ + + + +
+ << Symphony Native Functions + + + Symphony Native Functions + + + sym_addVar >> + +
+
+
+ + + + FOSSEE Optimization Toolbox >> FOSSEE Optimization Toolbox > Symphony Native Functions > sym_addConstr + +

+

sym_addConstr

+

Add a new constraint

+ +

Calling Sequence

+
sym_addConstr(coeff,type,bound1[,bound2])
+ +

Description

+ +

This function adds a new constraint from scratch. Supported types of constraints are less than or equal to, more than or equal to, equal to, or ranged.

+

The last argument is only required for ranged constraints. For the other types of constraints, only the third argument is required.

+ +

Arguments

+ +
coeff +

Sparse matrix representing coefficients of the variables in the new constraint (must have 1 row and number of columns equal to number of variables)

+
type +

Type of the new constraint. Supported types: less than or equal to ("L"), greater than or equal to ("G"), equal to ("E"), or ranged ("R")

+
bound1 +

The first (or only) bound for the constraint

+
bound2 +

The second bound for ranged constraints. The two bounds for ranged constraints can be in any order.

+ +

Return value

+ +

Returns 0

+ +

Examples

+ +
sym_addConstr(sparse([0,0,1,0,2]),"R",0,10)
+
sym_addConstr(sparse([0,0,1,1,0]),"G",4)
+ +

Authors

+ +
+
+ +
+ + + + + + +
Report an issue
+ << Symphony Native Functions + + + Symphony Native Functions + + + sym_addVar >> + +
+
+
+ + -- cgit