<< sym_addConstr Symphony Native Functions sym_close >>

Symphony Toolbox >> Symphony Toolbox > Symphony Native Functions > sym_addVar

sym_addVar

Add a new variable

Calling Sequence

sym_addVar(coeff,lower,upper,obj,isInt,name)

Description

This function adds a new variable from scratch.

Arguments

coeff

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

Lower bound of the new variable

upper

Upper bound of the new variable

obj

Coefficient of the variable in the objective function

isInt

Wether the variable is constrainted to be an integer (boolean %t or %f)

name

Name of the new variable

Return value

Returns 0

Examples

sym_addVar(sparse([0;0;1;2;0;0]),0,%inf,1.2,%t,"part1")

Authors


Report an issue
<< sym_addConstr Symphony Native Functions sym_close >>