Set the value(s) of an attribute. Use this method for scalar model attributes, or for arrays of constraint or variable attributes.
void | Set ( | GRB.CharAttr | attr, |
GRBVar[] | vars, | ||
char[] | newvalues ) |
Arguments:
attr: The attribute being modified.
vars: The variables whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input variable.
void | Set ( | GRB.CharAttr | attr, |
GRBVar[] | vars, | ||
char[] | newvalues, | ||
int | start, | ||
int | len ) |
Arguments:
attr: The attribute being modified.
vars: A one-dimensional array of variables whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input variable.
start: The index of the first variable of interest in the list.
len: The number of variables.
void | Set ( | GRB.CharAttr | attr, |
GRBVar[,] | vars, | ||
char[,] | newvalues ) |
Arguments:
attr: The attribute being modified.
vars: A two-dimensional array of variables whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input variable.
void | Set ( | GRB.CharAttr | attr, |
GRBVar[,,] | vars, | ||
char[,,] | newvalues ) |
Arguments:
attr: The attribute being modified.
vars: A three-dimensional array of variables whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input variable.
void | Set ( | GRB.CharAttr | attr, |
GRBConstr[] | constrs, | ||
char[] | newvalues ) |
Arguments:
attr: The attribute being modified.
constrs: The constraints whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input constraint.
void | Set ( | GRB.CharAttr | attr, |
GRBConstr[] | constrs, | ||
char[] | newvalues, | ||
int | start, | ||
int | len ) |
Arguments:
attr: The attribute being modified.
constrs: A one-dimensional array of constraints whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input constraint.
start: The index of the first constraint of interest in the list.
len: The number of constraints.
void | Set ( | GRB.CharAttr | attr, |
GRBConstr[,] | constrs, | ||
char[,] | newvalues ) |
Arguments:
attr: The attribute being modified.
constrs: A two-dimensional array of constraints whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input constraint.
void | Set ( | GRB.CharAttr | attr, |
GRBConstr[,,] | constrs, | ||
char[,,] | newvalues ) |
Arguments:
attr: The attribute being modified.
constrs: A three-dimensional array of constraints whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input constraint.
void | Set ( | GRB.CharAttr | attr, |
GRBQConstr[] | qconstrs, | ||
char[] | newvalues ) |
Arguments:
attr: The attribute being modified.
qconstrs: The quadratic constraints whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input quadratic constraint.
void | Set ( | GRB.CharAttr | attr, |
GRBQConstr[] | qconstrs, | ||
char[] | newvalues, | ||
int | start, | ||
int | len ) |
Arguments:
attr: The attribute being modified.
qconstrs: A one-dimensional array of quadratic constraints whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input quadratic constraint.
start: The index of the first quadratic constraint of interest in the list.
len: The number of quadratic constraints.
void | Set ( | GRB.CharAttr | attr, |
GRBQConstr[,] | qconstrs, | ||
char[,] | newvalues ) |
Arguments:
attr: The attribute being modified.
qconstrs: A two-dimensional array of quadratic constraints whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input quadratic constraint.
void | Set ( | GRB.CharAttr | attr, |
GRBQConstr[,,] | qconstrs, | ||
char[,,] | newvalues ) |
Arguments:
attr: The attribute being modified.
qconstrs: A three-dimensional array of quadratic constraints whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input quadratic constraint.
void | Set ( | GRB.DoubleAttr | attr, |
double | newvalue ) |
Arguments:
attr: The attribute being modified.
newvalue: The desired new value for the attribute.
void | Set ( | GRB.DoubleAttr | attr, |
GRBVar[] | vars, | ||
double[] | newvalues ) |
Arguments:
attr: The attribute being modified.
vars: The variables whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input variable.
void | Set ( | GRB.DoubleAttr | attr, |
GRBVar[] | vars, | ||
double[] | newvalues, | ||
int | start, | ||
int | len ) |
Arguments:
attr: The attribute being modified.
vars: A one-dimensional array of variables whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input variable.
start: The index of the first variable of interest in the list.
len: The number of variables.
void | Set ( | GRB.DoubleAttr | attr, |
GRBVar[,] | vars, | ||
double[,] | newvalues ) |
Arguments:
attr: The attribute being modified.
vars: A two-dimensional array of variables whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input variable.
void | Set ( | GRB.DoubleAttr | attr, |
GRBVar[,,] | vars, | ||
double[,,] | newvalues ) |
Arguments:
attr: The attribute being modified.
vars: A three-dimensional array of variables whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input variable.
void | Set ( | GRB.DoubleAttr | attr, |
GRBConstr[] | constrs, | ||
double[] | newvalues ) |
Arguments:
attr: The attribute being modified.
constrs: The constraints whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input constraint.
void | Set ( | GRB.DoubleAttr | attr, |
GRBConstr[] | constrs, | ||
double[] | newvalues, | ||
int | start, | ||
int | len ) |
Arguments:
attr: The attribute being modified.
constrs: A one-dimensional array of constraints whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input constraint.
start: The first constraint of interest in the list.
len: The number of constraints.
void | Set ( | GRB.DoubleAttr | attr, |
GRBConstr[,] | constrs, | ||
double[,] | newvalues ) |
Arguments:
attr: The attribute being modified.
constrs: A two-dimensional array of constraints whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input constraint.
void | Set ( | GRB.DoubleAttr | attr, |
GRBConstr[,,] | constrs, | ||
double[,,] | newvalues ) |
Arguments:
attr: The attribute being modified.
constrs: A three-dimensional array of constraints whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input constraint.
void | Set ( | GRB.DoubleAttr | attr, |
GRBQConstr[] | qconstrs, | ||
double[] | newvalues ) |
Arguments:
attr: The attribute being modified.
qconstrs: The quadratic constraints whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input quadratic constraint.
void | Set ( | GRB.DoubleAttr | attr, |
GRBQConstr[] | qconstrs, | ||
double[] | newvalues, | ||
int | start, | ||
int | len ) |
Arguments:
attr: The attribute being modified.
qconstrs: A one-dimensional array of quadratic constraints whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input quadratic constraint.
start: The first quadratic constraint of interest in the list.
len: The number of quadratic constraints.
void | Set ( | GRB.DoubleAttr | attr, |
GRBQConstr[,] | qconstrs, | ||
double[,] | newvalues ) |
Arguments:
attr: The attribute being modified.
qconstrs: A two-dimensional array of quadratic constraints whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input quadratic constraint.
void | Set ( | GRB.DoubleAttr | attr, |
GRBQConstr[,,] | qconstrs, | ||
double[,,] | newvalues ) |
Arguments:
attr: The attribute being modified.
qconstrs: A three-dimensional array of quadratic constraints whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input quadratic constraint.
void | Set ( | GRB.IntAttr | attr, |
int | newvalue ) |
Arguments:
attr: The attribute being modified.
newvalue: The desired new value for the attribute.
void | Set ( | GRB.IntAttr | attr, |
GRBVar[] | vars, | ||
int[] | newvalues ) |
Arguments:
attr: The attribute being modified.
vars: The variables whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input variable.
void | Set ( | GRB.IntAttr | attr, |
GRBVar[] | vars, | ||
int[] | newvalues, | ||
int | start, | ||
int | len ) |
Arguments:
attr: The attribute being modified.
vars: A one-dimensional array of variables whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input variable.
start: The index of the first variable of interest in the list.
len: The number of variables.
void | Set ( | GRB.IntAttr | attr, |
GRBVar[,] | vars, | ||
int[,] | newvalues ) |
Arguments:
attr: The attribute being modified.
vars: A two-dimensional array of variables whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input variable.
void | Set ( | GRB.IntAttr | attr, |
GRBVar[,,] | vars, | ||
int[,,] | newvalues ) |
Arguments:
attr: The attribute being modified.
vars: A three-dimensional array of variables whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input variable.
void | Set ( | GRB.IntAttr | attr, |
GRBConstr[] | constrs, | ||
int[] | newvalues ) |
Arguments:
attr: The attribute being modified.
constrs: The constraints whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input constraint.
void | Set ( | GRB.IntAttr | attr, |
GRBConstr[] | constrs, | ||
int[] | newvalues, | ||
int | start, | ||
int | len ) |
Arguments:
attr: The attribute being modified.
constrs: A one-dimensional array of constraints whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input constraint.
start: The index of the first constraint of interest in the list.
len: The number of constraints.
void | Set ( | GRB.IntAttr | attr, |
GRBConstr[,] | constrs, | ||
int[,] | newvalues ) |
Arguments:
attr: The attribute being modified.
constrs: A two-dimensional array of constraints whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input constraint.
void | Set ( | GRB.IntAttr | attr, |
GRBConstr[,,] | constrs, | ||
int[,,] | newvalues ) |
Arguments:
attr: The attribute being modified.
constrs: A three-dimensional array of constraints whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input constraint.
void | Set ( | GRB.StringAttr | attr, |
string | newvalue ) |
Arguments:
attr: The attribute being modified.
newvalue: The desired new value for the attribute.
void | Set ( | GRB.StringAttr | attr, |
GRBVar[] | vars, | ||
string[] | newvalues ) |
Arguments:
attr: The attribute being modified.
vars: The variables whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input variable.
void | Set ( | GRB.StringAttr | attr, |
GRBVar[] | vars, | ||
string[] | newvalues, | ||
int | start, | ||
int | len ) |
Arguments:
attr: The attribute being modified.
vars: A one-dimensional array of variables whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input variable.
start: The index of the first variable of interest in the list.
len: The number of variables.
void | Set ( | GRB.StringAttr | attr, |
GRBVar[,] | vars, | ||
string[,] | newvalues ) |
Arguments:
attr: The attribute being modified.
vars: A two-dimensional array of variables whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input variable.
void | Set ( | GRB.StringAttr | attr, |
GRBVar[,,] | vars, | ||
string[,,] | newvalues ) |
Arguments:
attr: The attribute being modified.
vars: A three-dimensional array of variables whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input variable.
void | Set ( | GRB.StringAttr | attr, |
GRBConstr[] | constrs, | ||
string[] | newvalues ) |
Arguments:
attr: The attribute being modified.
constrs: The constraints whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input constraint.
void | Set ( | GRB.StringAttr | attr, |
GRBConstr[] | constrs, | ||
string[] | newvalues, | ||
int | start, | ||
int | len ) |
Arguments:
attr: The attribute being modified.
constrs: A one-dimensional array of constraints whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input constraint.
start: The index of the first constraint of interest in the list.
len: The number of constraints.
void | Set ( | GRB.StringAttr | attr, |
GRBConstr[,] | constrs, | ||
string[,] | newvalues ) |
Arguments:
attr: The attribute being modified.
constrs: A two-dimensional array of constraints whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input constraint.
void | Set ( | GRB.StringAttr | attr, |
GRBConstr[,,] | constrs, | ||
string[,,] | newvalues ) |
Arguments:
attr: The attribute being modified.
constrs: A three-dimensional array of constraints whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input constraint.
void | Set ( | GRB.StringAttr | attr, |
GRBQConstr[] | qconstrs, | ||
string[] | newvalues ) |
Arguments:
attr: The attribute being modified.
qconstrs: The quadratic constraints whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input quadratic constraint.
void | Set ( | GRB.StringAttr | attr, |
GRBQConstr[] | qconstrs, | ||
string[] | newvalues, | ||
int | start, | ||
int | len ) |
Arguments:
attr: The attribute being modified.
qconstrs: A one-dimensional array of quadratic constraints whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input quadratic constraint.
start: The index of the first quadratic constraint of interest in the list.
len: The number of quadratic constraints.
void | Set ( | GRB.StringAttr | attr, |
GRBQConstr[,] | qconstrs, | ||
string[,] | newvalues ) |
Arguments:
attr: The attribute being modified.
qconstrs: A two-dimensional array of quadratic constraints whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input quadratic constraint.
void | Set ( | GRB.StringAttr | attr, |
GRBQConstr[,,] | qconstrs, | ||
string[,,] | newvalues ) |
Arguments:
attr: The attribute being modified.
qconstrs: A three-dimensional array of quadratic constraints whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input quadratic constraint.