Modifier and Type | Method and Description |
---|---|
GRBSOS |
GRBModel.addSOS(GRBVar[] vars,
double[] weights,
int type)
Add an SOS constraint to the model.
|
GRBSOS[] |
GRBModel.getSOSs()
Retrieve an array of all SOS constraints in the model.
|
Modifier and Type | Method and Description |
---|---|
int |
GRBModel.getSOS(GRBSOS sos,
GRBVar[] vars,
double[] weights,
int[] type)
Retrieve the list of variables that participate in an SOS constraint,
and the associated coefficients.
|
void |
GRBModel.remove(GRBSOS sos)
Remove an SOS constraint from the model.
|
Copyright © 2024. All rights reserved.