fuzzydl.milp
Class Inequation

java.lang.Object
  extended by fuzzydl.milp.Inequation

public class Inequation
extends java.lang.Object

Inequation of the form: expression type 0. Example: c + c1 * x1 + c2 * x2 + ... >= 0.


Field Summary
static int EQ
          Equal sign (=).
static int GE
          Greater or equal sign (>=).
static int LE
          Less or equal sign (<=).
 
Constructor Summary
Inequation(Expression expr, int type)
           
 
Method Summary
 double getConstant()
          Gets the constant of the expression.
static java.lang.String getMPSTypeCode(int type)
          Gets a MPS representation of the type.
 java.util.List<Term> getTerms()
          Gets the terms of the expression.
 int getType()
          Gets the type of the inequality.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EQ

public static final int EQ
Equal sign (=).

See Also:
Constant Field Values

LE

public static final int LE
Less or equal sign (<=).

See Also:
Constant Field Values

GE

public static final int GE
Greater or equal sign (>=).

See Also:
Constant Field Values
Constructor Detail

Inequation

public Inequation(Expression expr,
                  int type)
Method Detail

getTerms

public java.util.List<Term> getTerms()
Gets the terms of the expression.

Returns:
Terms of the expression.

getConstant

public double getConstant()
Gets the constant of the expression.

Returns:
Constant of the expression.

getType

public int getType()
Gets the type of the inequality.

Returns:
Type of the inequality.

getMPSTypeCode

public static java.lang.String getMPSTypeCode(int type)
Gets a MPS representation of the type.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object