#include <OSOption.h>
Public Member Functions | |
| BranchingWeight () | |
| Default constructor. | |
| ~BranchingWeight () | |
| Class destructor. | |
| bool | IsEqual (BranchingWeight *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. | |
Public Attributes | |
| int | idx |
| index of the variable | |
| double | value |
| branching weight | |
Definition at line 1404 of file OSOption.h.
| BranchingWeight::BranchingWeight | ( | ) |
| BranchingWeight::~BranchingWeight | ( | ) |
| bool BranchingWeight::IsEqual | ( | BranchingWeight * | that | ) |
| bool BranchingWeight::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 10811 of file OSOption.cpp.
References idx, OSRand(), and value.
Referenced by SOSWeights::setRandom(), and IntegerVariableBranchingWeights::setRandom().
index of the variable
Definition at line 1408 of file OSOption.h.
Referenced by SOSVariableBranchingWeights::addSOS(), SOSWeights::addVar(), IntegerVariableBranchingWeights::addVar(), IsEqual(), setRandom(), and IntegerVariableBranchingWeights::setVar().
| double BranchingWeight::value |
branching weight
Definition at line 1411 of file OSOption.h.
Referenced by SOSVariableBranchingWeights::addSOS(), SOSWeights::addVar(), IntegerVariableBranchingWeights::addVar(), IsEqual(), setRandom(), and IntegerVariableBranchingWeights::setVar().
1.4.7