the ConstraintOption class. More...
#include <OSOption.h>
Public Member Functions | |
ConstraintOption () | |
Default constructor. | |
~ConstraintOption () | |
Class destructor. | |
bool | IsEqual (ConstraintOption *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, OtherConstraintOption **other) |
A function to set an array of <other> elements. | |
bool | addOther (OtherConstraintOption *other) |
A function to add an <other> element. | |
Public Attributes | |
int | numberOfOtherConstraintOptions |
number of <other> child elements | |
InitConstraintValues * | initialConstraintValues |
initial values for the constraints | |
InitDualVariableValues * | initialDualValues |
initial dual values for the constraints | |
BasisStatus * | initialBasisStatus |
initial basis status for the slack variables | |
OtherConstraintOption ** | other |
other information about the constraints |
the ConstraintOption class.
Definition at line 2825 of file OSOption.h.
ConstraintOption::ConstraintOption | ( | ) |
Default constructor.
Definition at line 1138 of file OSOption.cpp.
ConstraintOption::~ConstraintOption | ( | ) |
Class destructor.
Definition at line 1150 of file OSOption.cpp.
bool ConstraintOption::IsEqual | ( | ConstraintOption * | that | ) |
A function to check for the equality of two objects.
Definition at line 10617 of file OSOption.cpp.
bool ConstraintOption::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 11924 of file OSOption.cpp.
bool ConstraintOption::setOther | ( | int | numberOfOptions, | |
OtherConstraintOption ** | 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 6504 of file OSOption.cpp.
bool ConstraintOption::addOther | ( | OtherConstraintOption * | other | ) |
A function to add an <other> element.
other,: | the content of the <other> element to be added |
Definition at line 6577 of file OSOption.cpp.
number of <other> child elements
Definition at line 2830 of file OSOption.h.
initial values for the constraints
Definition at line 2833 of file OSOption.h.
initial dual values for the constraints
Definition at line 2836 of file OSOption.h.
initial basis status for the slack variables
Definition at line 2839 of file OSOption.h.
other information about the constraints
Definition at line 2842 of file OSOption.h.