<< sym_setInteger Symphony Native Functions sym_setObjSense >>

Symphony Toolbox >> Symphony Toolbox > Symphony Native Functions > sym_setObjCoeff

sym_setObjCoeff

Set coefficient of a variable in the objective

Calling Sequence

sym_setObjCoeff(index,newCoeff)

Description

This function changes the coefficient of a variable in the objective function

Arguments

index

Index of the variable to modify. Must be in {0,1,2,...n-1} where n is the number of variables in the problem

newCoeff

The new coefficient of the variable

Return value

Returns 0

Examples

sym_setObjCoeff(2,1.5)

Authors


Report an issue
<< sym_setInteger Symphony Native Functions sym_setObjSense >>