gurobi
Class GRBGenConstr

java.lang.Object
  extended by gurobi.GRBGenConstr

public class GRBGenConstr
extends java.lang.Object

Gurobi general constraint object. General constraints are always associated with a particular model. You create a general constraint object by adding a general constraint to a model (using one of the


Method Summary
protected  void finalize()
           
 double get(GRB.DoubleAttr attr)
          Query the value of a double-valued attribute.
 int get(GRB.IntAttr attr)
          Query the value of an int-valued attribute.
 java.lang.String get(GRB.StringAttr attr)
          Query the value of a string-valued attribute.
 void set(GRB.DoubleAttr attr, double newval)
          Set the value of a double-valued attribute.
 void set(GRB.IntAttr attr, int newval)
          Set the value of an int-valued attribute.
 void set(GRB.StringAttr attr, java.lang.String newval)
          Set the value of a string-valued attribute.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

finalize

protected void finalize()
Overrides:
finalize in class java.lang.Object

get

public int get(GRB.IntAttr attr)
        throws GRBException
Query the value of an int-valued attribute.

Parameters:
attr - The attribute being queried.
Returns:
The current value of the requested attribute.
Throws:
GRBException

get

public double get(GRB.DoubleAttr attr)
           throws GRBException
Query the value of a double-valued attribute.

Parameters:
attr - The attribute being queried.
Returns:
The current value of the requested attribute.
Throws:
GRBException

get

public java.lang.String get(GRB.StringAttr attr)
                     throws GRBException
Query the value of a string-valued attribute.

Parameters:
attr - The attribute being queried.
Returns:
The current value of the requested attribute.
Throws:
GRBException

set

public void set(GRB.IntAttr attr,
                int newval)
         throws GRBException
Set the value of an int-valued attribute.

Parameters:
attr - The attribute being modified.
newval - The desired new value of the attribute.
Throws:
GRBException

set

public void set(GRB.DoubleAttr attr,
                double newval)
         throws GRBException
Set the value of a double-valued attribute.

Parameters:
attr - The attribute being modified.
newval - The desired new value of the attribute.
Throws:
GRBException

set

public void set(GRB.StringAttr attr,
                java.lang.String newval)
         throws GRBException
Set the value of a string-valued attribute.

Parameters:
attr - The attribute being modified.
newval - The desired new value of the attribute.
Throws:
GRBException