InitDualVariableValues Class Reference

the InitDualVariableValues class. More...

#include <OSOption.h>

Collaboration diagram for InitDualVariableValues:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 InitDualVariableValues ()
 Default constructor.
 ~InitDualVariableValues ()
 Class destructor.
bool IsEqual (InitDualVariableValues *that)
 A function to check for the equality of two objects.
bool setCon (int numberOfCon, InitDualVarValue **con)
 A function to set an array of <con> elements.
bool addCon (int idx, double lbDualValue, double ubDualValue)
 A function to add a <con> element.

Public Attributes

int numberOfCon
 number of <con> children
InitDualVarValue ** con
 initial dual values for each constraint

Detailed Description

the InitDualVariableValues 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 2014 of file OSOption.h.


Constructor & Destructor Documentation

InitDualVariableValues::InitDualVariableValues (  ) 

Default constructor.

Definition at line 974 of file OSOption.cpp.

References con.

InitDualVariableValues::~InitDualVariableValues (  ) 

Class destructor.

Definition at line 983 of file OSOption.cpp.

References con, and numberOfCon.


Member Function Documentation

bool InitDualVariableValues::IsEqual ( InitDualVariableValues that  ) 

A function to check for the equality of two objects.

Definition at line 8481 of file OSOption.cpp.

References con, and numberOfCon.

bool InitDualVariableValues::setCon ( int  numberOfCon,
InitDualVarValue **  con 
)

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

Parameters:
numberOfCon,: number of <con> elements to be set
con,: the array of <con> elements that are to be set

Definition at line 5029 of file OSOption.cpp.

References con, and ErrorClass::errormsg.

Referenced by OSOption::setInitDualVarValuesSparse().

bool InitDualVariableValues::addCon ( int  idx,
double  lbDualValue,
double  ubDualValue 
)

A function to add a <con> element.

Parameters:
idx,: the index of the constraint to be given initial dual variables
lbDualValue,: an initial value for the dual variable associated with the lower bound
ubDualValue,: an initial value for the dual variable associated with the upper bound

Definition at line 5063 of file OSOption.cpp.

References con, ErrorClass::errormsg, InitDualVarValue::idx, InitDualVarValue::lbDualValue, numberOfCon, and InitDualVarValue::ubDualValue.

Referenced by OSOption::setAnotherInitDualVarValue().


Member Data Documentation

int InitDualVariableValues::numberOfCon

number of <con> children

Definition at line 2018 of file OSOption.h.

Referenced by addCon(), OSOption::getNumberOfInitDualVarValues(), IsEqual(), OSOption::setInitDualVarValuesSparse(), and ~InitDualVariableValues().

InitDualVarValue** InitDualVariableValues::con

initial dual values for each constraint

Definition at line 2021 of file OSOption.h.

Referenced by addCon(), OSOption::getInitDualVarValuesSparse(), InitDualVariableValues(), IsEqual(), setCon(), OSOption::setInitDualVarValuesDense(), and ~InitDualVariableValues().


The documentation for this class was generated from the following files:
Generated on Mon May 3 03:12:17 2010 by  doxygen 1.4.7