ROOC
    Preparing search index...

    Class LinearSosConstraint

    A special ordered set of a linear model. In a type 1 set at most one member is nonzero, in a type 2 set at most two members are nonzero and they are adjacent in the order of their weights. getWeights()[k] is the weight of the variable at position getIndices()[k] of the model's getVariables().

    Index
    instance: _LinearSosConstraint
    • Get the indexes of the member variables, in the order they were given. An index is the position of the variable in the model's getVariables()

      Returns number[]

    • Get the weights of the members, getWeights()[k] is the weight of the variable at getIndices()[k]

      Returns number[]