Documentation

GRBVar.set()


GRBVar.set()

Set the value of a variable attribute.

void set ( GRB.CharAttr attr,
    char newval )
    Set the value of a char-valued attribute.

    Arguments:

    attr: The attribute being modified.

    newval: The desired new value of the attribute.

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

    Arguments:

    attr: The attribute being modified.

    newval: The desired new value of the attribute.

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

    Arguments:

    attr: The attribute being modified.

    newval: The desired new value of the attribute.

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

    Arguments:

    attr: The attribute being modified.

    newval: The desired new value of the attribute.