org.optimizationservices.oscommon.datastructure.osgeneral
Class QuadraticTerms

java.lang.Object
  extended by org.optimizationservices.oscommon.datastructure.osgeneral.QuadraticTerms

public class QuadraticTerms
extends java.lang.Object

The QuadraticTerms class holds the data structure for all quadratic terms in the optimization instance. (rowIndexes, varOneIndexes, varTwoIndexes, coefficients)

Since:
OS 1.0
Version:
1.0, 03/14/2004
Author:
Robert Fourer, Jun Ma, Kipp Martin, Huanyuan Sheng

Field Summary
 double[] coefficients
          coefficients holds a double array all the quadratic term coefficients.
 int[] rowIndexes
          rowIndexes holds an integer array of row indexes of all the quadratic terms.
 int[] varOneIndexes
          varOneIndexes holds an integer array of the first varialbe indexes of all the quadratic terms.
 int[] varTwoIndexes
          varTwoIndexes holds an integer array of the second varialbe indexes of all the quadratic terms.
 
Constructor Summary
QuadraticTerms()
          Default constructor.
 
Method Summary
static void main(java.lang.String[] args)
          main for test purposes.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rowIndexes

public int[] rowIndexes
rowIndexes holds an integer array of row indexes of all the quadratic terms. A negative integer corresponds to an objective row, e.g. -1 for 1st objective and -2 for 2nd.


varOneIndexes

public int[] varOneIndexes
varOneIndexes holds an integer array of the first varialbe indexes of all the quadratic terms.


varTwoIndexes

public int[] varTwoIndexes
varTwoIndexes holds an integer array of the second varialbe indexes of all the quadratic terms.


coefficients

public double[] coefficients
coefficients holds a double array all the quadratic term coefficients.

Constructor Detail

QuadraticTerms

public QuadraticTerms()
Default constructor.

Method Detail

main

public static void main(java.lang.String[] args)
main for test purposes.

Parameters:
argv - command line arguments.