the VariableOption class. More...
#include <OSOption.h>
Public Member Functions | |
VariableOption () | |
Default constructor. | |
~VariableOption () | |
Class destructor. | |
bool | IsEqual (VariableOption *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 | setOther (int numberOfOptions, OtherVariableOption **other) |
A function to set an array of <other> elements. | |
bool | addOther (OtherVariableOption *other) |
A function to add an <other> element. | |
Public Attributes | |
int | numberOfOtherVariableOptions |
number of <other> child elements | |
InitVariableValues * | initialVariableValues |
initial values for the variables | |
InitVariableValuesString * | initialVariableValuesString |
initial values for string-valued variables | |
BasisStatus * | initialBasisStatus |
initial basis information | |
IntegerVariableBranchingWeights * | integerVariableBranchingWeights |
branching weights for integer variables | |
SOSVariableBranchingWeights * | sosVariableBranchingWeights |
branching weights for SOS variables and groups | |
OtherVariableOption ** | other |
other variable options |
the VariableOption class.
Definition at line 1850 of file OSOption.h.
VariableOption::VariableOption | ( | ) |
Default constructor.
Definition at line 740 of file OSOption.cpp.
VariableOption::~VariableOption | ( | ) |
Class destructor.
Definition at line 754 of file OSOption.cpp.
bool VariableOption::IsEqual | ( | VariableOption * | that | ) |
A function to check for the equality of two objects.
Definition at line 9678 of file OSOption.cpp.
bool VariableOption::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" attributes and <XXX> children) |
Definition at line 11490 of file OSOption.cpp.
bool VariableOption::setOther | ( | int | numberOfOptions, | |
OtherVariableOption ** | other | |||
) |
A function to set an array of <other> elements.
numberOfOptions,: | number of <other> elements to be set | |
other,: | the array of <other> elements that are to be set |
Definition at line 5623 of file OSOption.cpp.
bool VariableOption::addOther | ( | OtherVariableOption * | other | ) |
A function to add an <other> element.
other,: | the content of the <other> element to be added |
Definition at line 5693 of file OSOption.cpp.
number of <other> child elements
Definition at line 1855 of file OSOption.h.
initial values for the variables
Definition at line 1858 of file OSOption.h.
initial values for string-valued variables
Definition at line 1861 of file OSOption.h.
initial basis information
Definition at line 1864 of file OSOption.h.
branching weights for integer variables
Definition at line 1867 of file OSOption.h.
branching weights for SOS variables and groups
Definition at line 1870 of file OSOption.h.
other variable options
Definition at line 1873 of file OSOption.h.