<< sym_setConstrLower Symphony Native Functions sym_setConstrUpper >>

Symphony Toolbox >> Symphony Toolbox > Symphony Native Functions > sym_setConstrType

sym_setConstrType

Set the type of a constraint

Calling Sequence

sym_setConstrType(index,type,bound1[,bound2])

Description

This function completely modifies the type of a constraint. 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

index

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

type

New type of the 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_setConstrType(2,"R",-10,10)
sym_setConstrType(3,"E",100)

Authors


Report an issue
<< sym_setConstrLower Symphony Native Functions sym_setConstrUpper >>