the SOSVariableBranchingWeights class. More...
#include <OSOption.h>

Public Member Functions | |
| SOSVariableBranchingWeights () | |
| Default constructor. | |
| ~SOSVariableBranchingWeights () | |
| Class destructor. | |
| bool | IsEqual (SOSVariableBranchingWeights *that) |
| A function to check for the equality of two objects. | |
| bool | setRandom (double density, bool conformant) |
| A function to make a random instance of this class. | |
| bool | setSOS (int numberOfSOS, SOSWeights **sos) |
| A function to set an array of <sos> elements. | |
| bool | addSOS (int sosIdx, int nvar, double weight, int *idx, double *value, std::string *name) |
| A function to add an <sos> element. | |
Public Attributes | |
| int | numberOfSOS |
| number of <sos> children | |
| SOSWeights ** | sos |
| branching weights for the SOS | |
the SOSVariableBranchingWeights class.
Definition at line 1634 of file OSOption.h.
| SOSVariableBranchingWeights::SOSVariableBranchingWeights | ( | ) |
Default constructor.
Definition at line 648 of file OSOption.cpp.
| SOSVariableBranchingWeights::~SOSVariableBranchingWeights | ( | ) |
Class destructor.
Definition at line 657 of file OSOption.cpp.
| bool SOSVariableBranchingWeights::IsEqual | ( | SOSVariableBranchingWeights * | that | ) |
A function to check for the equality of two objects.
Definition at line 10021 of file OSOption.cpp.
| bool SOSVariableBranchingWeights::setRandom | ( | double | density, | |
| bool | conformant | |||
| ) |
A function to make a random instance of this class.
| density,: | corresponds to the probability that a particular child element is created | |
| conformant,: | if true enforces side constraints not enforceable in the schema (e.g., agreement of "numberOfXXX" atrbutes and <XXX> children) |
Definition at line 11612 of file OSOption.cpp.
| bool SOSVariableBranchingWeights::setSOS | ( | int | numberOfSOS, | |
| SOSWeights ** | sos | |||
| ) |
A function to set an array of <sos> elements.
| numberOfSOS,: | number of <sos> elements to be set | |
| sos,: | the array of <sos> elements that are to be set |
Definition at line 5419 of file OSOption.cpp.
| bool SOSVariableBranchingWeights::addSOS | ( | int | sosIdx, | |
| int | nvar, | |||
| double | weight, | |||
| int * | idx, | |||
| double * | value, | |||
| std::string * | name | |||
| ) |
A function to add an <sos> element.
| sosIdx,: | the index of the SOS that is to be added (refer back to OSiL file) | |
| nvar,: | the number of variables in this SOS that are to be given weights | |
| weight,: | a selection weight for the entire group of variables | |
| idx,: | an array of variable indices | |
| value,: | the array of corresponding selection weights | |
| sos,: | the content of the <sos> element that is to be added |
Definition at line 5470 of file OSOption.cpp.
number of <sos> children
Definition at line 1639 of file OSOption.h.
branching weights for the SOS
Definition at line 1642 of file OSOption.h.
1.6.1