Initializing help system before first use

# makesos1, makesos2

Purpose
Creates a special ordered set (SOS) using a set of decision variables and a linear constraint.
Synopsis
`procedure makesos1(cs:linctr, s:set of mpvar, c:linctr)`
`procedure makesos1(s:set of mpvar, c:linctr)`
`procedure makesos2(cs:linctr, s:set of mpvar, c:linctr)`
`procedure makesos2(s:set of mpvar, c:linctr)`
Arguments

cs | A linear constraint
s | A set of decision variables
c | A linear constraint

Example
The following generates the SOS1 set mysos based on the linear constraint rr. The resulting set contains the variables x, y, and z with the weights 0,2, and 4.

    declarations
     x,y,z: mpvar
     rr,mysos: linctr
    end-declarations

    rr:= 2*y+4*z
    makesos1(mysos, {x,y,z}, rr)

Further information
These procedures generate a SOS set containing the decision variables of the set s with the coefficients of the linear constraint c. The resulting set it assigned to cs if it is provided. Note that these procedures simplify the generation of SOS with weights of value 0.
Parent Topic Predefined functions and procedures

© 2001-2026 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.