makesos1, makesos2
| makesos1, makesos2 | 
  Purpose
 
  
  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.
 
 
