Set the value(s) of a parameter or attribute. Use this method for parameters, for scalar model attributes, and for arrays of constraint or variable attributes.
void | set ( | GRB_DoubleParam | param, |
double | newvalue ) |
The difference between setting a parameter on a model and setting it on an environment (i.e., through GRBEnv::set) is that the former modifies the parameter for a single model, while the latter modifies the parameter for every model that is subsequently built using that environment (and leaves the parameter unchanged for models that were previously built using that environment).
Arguments:
param: The parameter being modified.
newvalue: The desired new value for the parameter.
void | set ( | GRB_IntParam | param, |
int | newvalue ) |
The difference between setting a parameter on a model and setting it on an environment (i.e., through GRBEnv::set) is that the former modifies the parameter for a single model, while the latter modifies the parameter for every model that is subsequently built using that environment (and leaves the parameter unchanged for models that were previously built using that environment).
Arguments:
param: The parameter being modified.
newvalue: The desired new value for the parameter.
void | set ( | GRB_StringParam | param, |
string | newvalue ) |
The difference between setting a parameter on a model and setting it on an environment (i.e., through GRBEnv::set) is that the former modifies the parameter for a single model, while the latter modifies the parameter for every model that is subsequently built using that environment (and leaves the parameter unchanged for models that were previously built using that environment).
Arguments:
param: The parameter being modified.
newvalue: The desired new value for the parameter.
void | set ( | GRB_CharAttr | attr, |
const GRBVar* | vars, | ||
char* | newvalues, | ||
int | count ) |
Arguments:
attr: The attribute being modified.
vars: An array of variables whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input variable.
count: The number of variable attributes to set.
void | set ( | GRB_CharAttr | attr, |
const GRBConstr* | constrs, | ||
char* | newvalues, | ||
int | count ) |
Arguments:
attr: The attribute being modified.
constrs: An array of constraints whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input constraint.
count: The number of constraint attributes to set.
void | set ( | GRB_CharAttr | attr, |
const GRBQConstr* | qconstrs, | ||
char* | newvalues, | ||
int | count ) |
Arguments:
attr: The attribute being modified.
constrs: An array of quadratic constraints whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input quadratic constraint.
count: The number of quadratic constraint attributes to set.
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, |
const GRBVar* | vars, | ||
double* | newvalues, | ||
int | count ) |
Arguments:
attr: The attribute being modified.
vars: An array of variables whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input variable.
count: The number of variable attributes to set.
void | set ( | GRB_DoubleAttr | attr, |
const GRBConstr* | constrs, | ||
double* | newvalues, | ||
int | count ) |
Arguments:
attr: The attribute being modified.
constrs: An array of constraints whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input constraint.
count: The number of constraint attributes to set.
void | set ( | GRB_DoubleAttr | attr, |
const GRBQConstr* | qconstrs, | ||
double* | newvalues, | ||
int | count ) |
Arguments:
attr: The attribute being modified.
constrs: An array of quadratic constraints whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input quadratic constraint.
count: The number of quadratic constraint attributes to set.
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, |
const GRBVar* | vars, | ||
int* | newvalues, | ||
int | count ) |
Arguments:
attr: The attribute being modified.
vars: An array of variables whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input variable.
count: The number of variable attributes to set.
void | set ( | GRB_IntAttr | attr, |
const GRBConstr* | constrs, | ||
int* | newvalues, | ||
int | count ) |
Arguments:
attr: The attribute being modified.
constrs: An array of constraints whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input constraint.
count: The number of constraint attributes to set.
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, |
const GRBVar* | vars, | ||
string* | newvalues, | ||
int | count ) |
Arguments:
attr: The attribute being modified.
vars: An array of variables whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input variable.
count: The number of variable attributes to set.
void | set ( | GRB_StringAttr | attr, |
const GRBConstr* | constrs, | ||
string* | newvalues, | ||
int | count ) |
Arguments:
attr: The attribute being modified.
constrs: An array of constraints whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input constraint.
count: The number of constraint attributes to set.
void | set ( | GRB_StringAttr | attr, |
const GRBQConstr* | qconstrs, | ||
string* | newvalues, | ||
int | count ) |
Arguments:
attr: The attribute being modified.
constrs: An array of quadratic constraints whose attribute values are being modified.
newvalues: The desired new values for the attribute for each input quadratic constraint.
count: The number of quadratic constraint attributes to set.