Add a new variable
sym_addVar(coeff,lower,upper,obj,isInt,name)
This function adds a new variable from scratch.
Sparse matrix representing coefficients of the new variable in the existing constraints (must have 1 column and number of rows equal to number of constraints)
Lower bound of the new variable
Upper bound of the new variable
Coefficient of the variable in the objective function
Wether the variable is constrainted to be an integer (boolean %t or %f)
Name of the new variable
Returns 0
sym_addVar(sparse([0;0;1;2;0;0]),0,%inf,1.2,%t,"part1") |