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 Keyur Joshi