<< sym_isAbandoned Symphony Native Functions sym_isContinuous >>

FOSSEE Optimization Toolbox >> FOSSEE Optimization Toolbox > Symphony Native Functions > sym_isBinary

sym_isBinary

Check if a variable is constrained to be binary

Calling Sequence

sym_isBinary(index)

Description

This function checks if a variable is constrained to be binary (0 or 1).

Arguments

index

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

Return value

Returns 1 if the variable is constrained to be binary and 0 if it is not.

Examples

sym_isBinary(2)

Authors


Report an issue
<< sym_isAbandoned Symphony Native Functions sym_isContinuous >>