OS  2.9.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Public Attributes | List of all members
QuadraticTerm Class Reference

The in-memory representation of the <qTerm> element. More...

#include <OSInstance.h>

Public Member Functions

 QuadraticTerm ()
 The QuadraticTerm class constructor. More...
 
 ~QuadraticTerm ()
 The QuadraticTerm class destructor. More...
 
bool IsEqual (QuadraticTerm *that)
 A function to check for the equality of two objects. More...
 

Public Attributes

int idx
 idx is the index of the row in which the quadratic term appears More...
 
int idxOne
 idxOne is the index of the first variable in the quadratic term More...
 
int idxTwo
 idxTwo is the index of the second variable in the quadratic term More...
 
double coef
 coef is the coefficient of the quadratic term More...
 

Detailed Description

The in-memory representation of the <qTerm> element.

Remarks
quadratic terms can be stored efficiently by storing the index of each variable, the coefficient of the quadratic term, and the row in which it appears

Definition at line 342 of file OSInstance.h.

Constructor & Destructor Documentation

QuadraticTerm::QuadraticTerm ( )

The QuadraticTerm class constructor.

QuadraticTerm::~QuadraticTerm ( )

The QuadraticTerm class destructor.

Member Function Documentation

bool QuadraticTerm::IsEqual ( QuadraticTerm that)

A function to check for the equality of two objects.

Member Data Documentation

int QuadraticTerm::idx

idx is the index of the row in which the quadratic term appears

Definition at line 355 of file OSInstance.h.

int QuadraticTerm::idxOne

idxOne is the index of the first variable in the quadratic term

Definition at line 360 of file OSInstance.h.

int QuadraticTerm::idxTwo

idxTwo is the index of the second variable in the quadratic term

Definition at line 365 of file OSInstance.h.

double QuadraticTerm::coef

coef is the coefficient of the quadratic term

Definition at line 368 of file OSInstance.h.


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