OS  2.10.2
Public Member Functions | Public Attributes | List of all members
DualVarValue Class Reference

The DualVarValue Class. More...

#include <OSResult.h>

+ Collaboration diagram for DualVarValue:

Public Member Functions

 DualVarValue ()
 Default constructor. More...
 
 ~DualVarValue ()
 Class destructor. More...
 
bool IsEqual (DualVarValue *that)
 A function to check for the equality of two objects. More...
 
bool setRandom (double density, bool conformant)
 A function to make a random instance of this class. More...
 

Public Attributes

int idx
 idx is the index on a constraint More...
 
std::string name
 optional name More...
 
double value
 value of dual variable on the constraint indexed by idx More...
 

Detailed Description

The DualVarValue Class.

Author
Robert Fourer, Horand Gassmann, Jun Ma, Kipp Martin
Version
1.0, 03/14/2004
Since
OS 1.0
Remarks
A class that provides the dual value of a constraint

Definition at line 1598 of file OSResult.h.

Constructor & Destructor Documentation

◆ DualVarValue()

DualVarValue::DualVarValue ( )

Default constructor.

◆ ~DualVarValue()

DualVarValue::~DualVarValue ( )

Class destructor.

Member Function Documentation

◆ IsEqual()

bool DualVarValue::IsEqual ( DualVarValue that)

A function to check for the equality of two objects.

◆ setRandom()

bool DualVarValue::setRandom ( double  density,
bool  conformant 
)

A function to make a random instance of this class.

Parameters
densitycorresponds to the probability that a particular child element is created
conformantif true enforces side constraints not enforceable in the schema (e.g., agreement of "numberOfXXX" attributes and <XXX> children)

Member Data Documentation

◆ idx

int DualVarValue::idx

idx is the index on a constraint

Definition at line 1603 of file OSResult.h.

◆ name

std::string DualVarValue::name

optional name

Definition at line 1606 of file OSResult.h.

◆ value

double DualVarValue::value

value of dual variable on the constraint indexed by idx

Definition at line 1611 of file OSResult.h.


The documentation for this class was generated from the following file: