VariableOption Class Reference

the VariableOption class. More...

#include <OSOption.h>

Collaboration diagram for VariableOption:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 VariableOption ()
 Default constructor.
 ~VariableOption ()
 Class destructor.
bool IsEqual (VariableOption *that)
 A function to check for the equality of two objects.
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
InitVariableValuesinitialVariableValues
 initial values for the variables
InitVariableValuesStringinitialVariableValuesString
 initial values for string-valued variables
InitialBasisStatusinitialBasisStatus
 initial basis information
IntegerVariableBranchingWeightsintegerVariableBranchingWeights
 branching weights for integer variables
SOSVariableBranchingWeightssosVariableBranchingWeights
 branching weights for SOS variables and groups
OtherVariableOption ** other
 other variable options

Detailed Description

the VariableOption class.

Author:
Robert Fourer, Gus Gassmann, Jun Ma, Kipp Martin
Version:
1.0, 21/07/2008
Since:
OS 1.1
Remarks:
A data structure class that corresponds to an xml element in the OSoL schema.

Definition at line 1449 of file OSOption.h.


Constructor & Destructor Documentation

VariableOption::VariableOption (  ) 

Default constructor.

Definition at line 701 of file OSOption.cpp.

References initialBasisStatus, initialVariableValues, initialVariableValuesString, integerVariableBranchingWeights, other, and sosVariableBranchingWeights.

VariableOption::~VariableOption (  ) 

Class destructor.

Definition at line 715 of file OSOption.cpp.

References initialBasisStatus, initialVariableValues, initialVariableValuesString, integerVariableBranchingWeights, numberOfOtherVariableOptions, other, and sosVariableBranchingWeights.


Member Function Documentation

bool VariableOption::IsEqual ( VariableOption that  ) 

A function to check for the equality of two objects.

Definition at line 7458 of file OSOption.cpp.

References initialBasisStatus, initialVariableValues, initialVariableValuesString, integerVariableBranchingWeights, numberOfOtherVariableOptions, other, and sosVariableBranchingWeights.

bool VariableOption::setOther ( int  numberOfOptions,
OtherVariableOption **  other 
)

A function to set an array of <other> elements.

Parameters:
numberOfOptions,: number of <other> elements to be set
other,: the array of <other> elements that are to be set

Definition at line 4524 of file OSOption.cpp.

References OtherVariableOption::category, OtherVariableOption::description, ErrorClass::errormsg, OtherVariableOption::name, numberOfOtherVariableOptions, OtherVariableOption::numberOfVar, other, OtherVariableOption::solver, OtherVariableOption::type, OtherVariableOption::value, and OtherVariableOption::var.

Referenced by OSOption::setOtherVariableOptions().

bool VariableOption::addOther ( OtherVariableOption other  ) 

A function to add an <other> element.

Parameters:
other,: the content of the <other> element to be added

Definition at line 4574 of file OSOption.cpp.

References OtherVariableOption::category, OtherVariableOption::description, OtherVariableOption::name, numberOfOtherVariableOptions, OtherVariableOption::numberOfVar, other, OtherVariableOption::solver, OtherVariableOption::type, OtherVariableOption::value, and OtherVariableOption::var.

Referenced by OSOption::setAnOtherVariableOption().


Member Data Documentation

int VariableOption::numberOfOtherVariableOptions

number of <other> child elements

Definition at line 1453 of file OSOption.h.

Referenced by addOther(), OSOption::getNumberOfOtherVariableOptions(), IsEqual(), setOther(), OSOption::setOtherVariableOptions(), and ~VariableOption().

InitVariableValues* VariableOption::initialVariableValues

initial values for the variables

Definition at line 1456 of file OSOption.h.

Referenced by OSOption::getInitVarValuesSparse(), OSOption::getNumberOfInitVarValues(), IsEqual(), OSOption::setAnotherInitVarValue(), OSOption::setInitVarValuesDense(), OSOption::setInitVarValuesSparse(), VariableOption(), and ~VariableOption().

InitVariableValuesString* VariableOption::initialVariableValuesString

initial values for string-valued variables

Definition at line 1459 of file OSOption.h.

Referenced by OSOption::getInitVarValuesStringSparse(), OSOption::getNumberOfInitVarValuesString(), IsEqual(), OSOption::setAnotherInitVarValueString(), OSOption::setInitVarValuesStringDense(), OSOption::setInitVarValuesStringSparse(), VariableOption(), and ~VariableOption().

InitialBasisStatus* VariableOption::initialBasisStatus

initial basis information

Definition at line 1462 of file OSOption.h.

Referenced by OSOption::getInitBasisStatusSparse(), OSOption::getNumberOfInitialBasisVariables(), IsEqual(), OSOption::setAnotherInitBasisStatus(), OSOption::setInitBasisStatusDense(), OSOption::setInitBasisStatusSparse(), VariableOption(), and ~VariableOption().

IntegerVariableBranchingWeights* VariableOption::integerVariableBranchingWeights

branching weights for integer variables

Definition at line 1465 of file OSOption.h.

Referenced by OSOption::getIntegerVariableBranchingWeightsSparse(), OSOption::getNumberOfIntegerVariableBranchingWeights(), IsEqual(), OSOption::setAnotherIntegerVariableBranchingWeight(), OSOption::setIntegerVariableBranchingWeightsDense(), OSOption::setIntegerVariableBranchingWeightsSparse(), VariableOption(), and ~VariableOption().

SOSVariableBranchingWeights* VariableOption::sosVariableBranchingWeights

branching weights for SOS variables and groups

Definition at line 1468 of file OSOption.h.

Referenced by OSOption::getNumberOfSOS(), OSOption::getNumberOfSOSVarBranchingWeights(), OSOption::getSOSVariableBranchingWeightsSparse(), IsEqual(), OSOption::setAnotherSOSVariableBranchingWeight(), OSOption::setSOSVariableBranchingWeights(), VariableOption(), and ~VariableOption().

OtherVariableOption** VariableOption::other

other variable options

Definition at line 1471 of file OSOption.h.

Referenced by addOther(), OSOption::getAllOtherVariableOptions(), IsEqual(), setOther(), VariableOption(), and ~VariableOption().


The documentation for this class was generated from the following files:
Generated on Sun Mar 20 03:12:24 2011 by  doxygen 1.4.7