Documentation
GRBModel.set()
Set the value(s) of a parameter or attribute. Use this method for parameters, for scalar model attributes, or for arrays of constraint or variable attributes.
void  set (  GRB.DoubleParam  param, 
double  newval ) 

Set the value of a doublevalued parameter.
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.
newval: The desired new value for the parameter.
void  set (  GRB.IntParam  param, 
int  newval ) 

Set the value of an intvalued parameter.
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.
newval: The desired new value for the parameter.
void  set (  GRB.StringParam  param, 
String  newval ) 

Set the value of a stringvalued parameter.
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.
newval: The desired new value for the parameter.
void  set (  String  param, 
String  newval ) 

Set the value of any parameter using strings alone.
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 name of the parameter being modified.
newval: The desired new value for the parameter.
void  set (  GRB.CharAttr  attr, 
GRBVar[]  vars,  
char[]  newvals ) 

Set a charvalued variable attribute for an array of variables.
Arguments:
attr: The attribute being modified.
vars: The variables whose attribute values are being modified.
newvals: The desired new values for the attribute for each input variable.
void  set (  GRB.CharAttr  attr, 
GRBVar[]  vars,  
char[]  newvals,  
int  start,  
int  len ) 

Set a charvalued variable attribute for a subarray of variables.
Arguments:
attr: The attribute being modified.
vars: A onedimensional array of variables whose attribute values are being modified.
newvals: 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[][]  newvals ) 

Set a charvalued variable attribute for a twodimensional array of
variables.
Arguments:
attr: The attribute being modified.
vars: A twodimensional array of variables whose attribute values are being modified.
newvals: The desired new values for the attribute for each input variable.
void  set (  GRB.CharAttr  attr, 
GRBVar[][][]  vars,  
char[][][]  newvals ) 

Set a charvalued variable attribute for a threedimensional array
of variables.
Arguments:
attr: The attribute being modified.
vars: A threedimensional array of variables whose attribute values are being modified.
newvals: The desired new values for the attribute for each input variable.
void  set (  GRB.CharAttr  attr, 
GRBConstr[]  constrs,  
char[]  newvals ) 

Set a charvalued constraint attribute for an array of constraints.
Arguments:
attr: The attribute being modified.
constrs: The constraints whose attribute values are being modified.
newvals: The desired new values for the attribute for each input constraint.
void  set (  GRB.CharAttr  attr, 
GRBConstr[]  constrs,  
char[]  newvals,  
int  start,  
int  len ) 

Set a charvalued constraint attribute for a subarray of constraints.
Arguments:
attr: The attribute being modified.
constrs: A onedimensional array of constraints whose attribute values are being modified.
newvals: 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[][]  newvals ) 

Set a charvalued constraint attribute for a twodimensional array of
constraints.
Arguments:
attr: The attribute being modified.
constrs: A twodimensional array of constraints whose attribute values are being modified.
newvals: The desired new values for the attribute for each input constraint.
void  set (  GRB.CharAttr  attr, 
GRBConstr[][][]  constrs,  
char[][][]  newvals ) 

Set a charvalued constraint attribute for a threedimensional array
of constraints.
Arguments:
attr: The attribute being modified.
constrs: A threedimensional array of constraints whose attribute values are being modified.
newvals: The desired new values for the attribute for each input constraint.
void  set (  GRB.CharAttr  attr, 
GRBQConstr[]  qconstrs,  
char[]  newvals ) 

Set a charvalued quadratic constraint attribute for an array of quadratic constraints.
Arguments:
attr: The attribute being modified.
qconstrs: The quadratic constraints whose attribute values are being modified.
newvals: The desired new values for the attribute for each input quadratic constraint.
void  set (  GRB.CharAttr  attr, 
GRBQConstr[]  qconstrs,  
char[]  newvals,  
int  start,  
int  len ) 

Set a charvalued quadratic constraint attribute for a subarray of quadratic constraints.
Arguments:
attr: The attribute being modified.
qconstrs: A onedimensional array of quadratic constraints whose attribute values are being modified.
newvals: 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[][]  newvals ) 

Set a charvalued quadratic constraint attribute for a twodimensional array of
quadratic constraints.
Arguments:
attr: The attribute being modified.
qconstrs: A twodimensional array of quadratic constraints whose attribute values are being modified.
newvals: The desired new values for the attribute for each input quadratic constraint.
void  set (  GRB.CharAttr  attr, 
GRBQConstr[][][]  qconstrs,  
char[][][]  newvals ) 

Set a charvalued quadratic constraint attribute for a threedimensional array
of quadratic constraints.
Arguments:
attr: The attribute being modified.
qconstrs: A threedimensional array of quadratic constraints whose attribute values are being modified.
newvals: The desired new values for the attribute for each input quadratic constraint.
void  set (  GRB.DoubleAttr  attr, 
double  newval ) 

Set the value of a doublevalued model attribute.
Arguments:
attr: The attribute being modified.
newval: The desired new value for the attribute.
void  set (  GRB.DoubleAttr  attr, 
GRBVar[]  vars,  
double[]  newvals ) 

Set a doublevalued variable attribute for an array of variables.
Arguments:
attr: The attribute being modified.
vars: The variables whose attribute values are being modified.
newvals: The desired new values for the attribute for each input variable.
void  set (  GRB.DoubleAttr  attr, 
GRBVar[]  vars,  
double[]  newvals,  
int  start,  
int  len ) 

Set a doublevalued variable attribute for a subarray of variables.
Arguments:
attr: The attribute being modified.
vars: A onedimensional array of variables whose attribute values are being modified.
newvals: 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[][]  newvals ) 

Set a doublevalued variable attribute for a twodimensional array of
variables.
Arguments:
attr: The attribute being modified.
vars: A twodimensional array of variables whose attribute values are being modified.
newvals: The desired new values for the attribute for each input variable.
void  set (  GRB.DoubleAttr  attr, 
GRBVar[][][]  vars,  
double[][][]  newvals ) 

Set a doublevalued variable attribute for a threedimensional array
of variables.
Arguments:
attr: The attribute being modified.
vars: A threedimensional array of variables whose attribute values are being modified.
newvals: The desired new values for the attribute for each input variable.
void  set (  GRB.DoubleAttr  attr, 
GRBConstr[]  constrs,  
double[]  newvals ) 

Set a doublevalued constraint attribute for an array of constraints.
Arguments:
attr: The attribute being modified.
constrs: The constraints whose attribute values are being modified.
newvals: The desired new values for the attribute for each input constraint.
void  set (  GRB.DoubleAttr  attr, 
GRBConstr[]  constrs,  
double[]  newvals,  
int  start,  
int  len ) 

Set a doublevalued constraint attribute for a subarray of constraints.
Arguments:
attr: The attribute being modified.
constrs: A onedimensional array of constraints whose attribute values are being modified.
newvals: 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[][]  newvals ) 

Set a doublevalued constraint attribute for a twodimensional array of
constraints.
Arguments:
attr: The attribute being modified.
constrs: A twodimensional array of constraints whose attribute values are being modified.
newvals: The desired new values for the attribute for each input constraint.
void  set (  GRB.DoubleAttr  attr, 
GRBConstr[][][]  constrs,  
double[][][]  newvals ) 

Set a doublevalued constraint attribute for a threedimensional array
of constraints.
Arguments:
attr: The attribute being modified.
constrs: A threedimensional array of constraints whose attribute values are being modified.
newvals: The desired new values for the attribute for each input constraint.
void  set (  GRB.DoubleAttr  attr, 
GRBQConstr[]  qconstrs,  
double[]  newvals ) 

Set a doublevalued quadratic constraint attribute for an array of quadratic constraints.
Arguments:
attr: The attribute being modified.
qconstrs: The quadratic constraints whose attribute values are being modified.
newvals: The desired new values for the attribute for each input quadratic constraint.
void  set (  GRB.DoubleAttr  attr, 
GRBQConstr[]  qconstrs,  
double[]  newvals,  
int  start,  
int  len ) 

Set a doublevalued quadratic constraint attribute for a subarray of quadratic constraints.
Arguments:
attr: The attribute being modified.
qconstrs: A onedimensional array of quadratic constraints whose attribute values are being modified.
newvals: 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[][]  newvals ) 

Set a doublevalued quadratic constraint attribute for a twodimensional array of
quadratic constraints.
Arguments:
attr: The attribute being modified.
qconstrs: A twodimensional array of quadratic constraints whose attribute values are being modified.
newvals: The desired new values for the attribute for each input quadratic constraint.
void  set (  GRB.DoubleAttr  attr, 
GRBQConstr[][][]  qconstrs,  
double[][][]  newvals ) 

Set a doublevalued quadratic constraint attribute for a threedimensional array
of quadratic constraints.
Arguments:
attr: The attribute being modified.
qconstrs: A threedimensional array of quadratic constraints whose attribute values are being modified.
newvals: The desired new values for the attribute for each input quadratic constraint.
void  set (  GRB.IntAttr  attr, 
int  newval ) 

Set the value of an intvalued model attribute.
Arguments:
attr: The attribute being modified.
newval: The desired new value for the attribute.
void  set (  GRB.IntAttr  attr, 
GRBVar[]  vars,  
int[]  newvals ) 

Set an intvalued variable attribute for an array of variables.
Arguments:
attr: The attribute being modified.
vars: The variables whose attribute values are being modified.
newvals: The desired new values for the attribute for each input variable.
void  set (  GRB.IntAttr  attr, 
GRBVar[]  vars,  
int[]  newvals,  
int  start,  
int  len ) 

Set an intvalued variable attribute for a subarray of variables.
Arguments:
attr: The attribute being modified.
vars: A onedimensional array of variables whose attribute values are being modified.
newvals: 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[][]  newvals ) 

Set an intvalued variable attribute for a twodimensional array of
variables.
Arguments:
attr: The attribute being modified.
vars: A twodimensional array of variables whose attribute values are being modified.
newvals: The desired new values for the attribute for each input variable.
void  set (  GRB.IntAttr  attr, 
GRBVar[][][]  vars,  
int[][][]  newvals ) 

Set an intvalued variable attribute for a threedimensional array
of variables.
Arguments:
attr: The attribute being modified.
vars: A threedimensional array of variables whose attribute values are being modified.
newvals: The desired new values for the attribute for each input variable.
void  set (  GRB.IntAttr  attr, 
GRBConstr[]  constrs,  
int[]  newvals ) 

Set an intvalued constraint attribute for an array of constraints.
Arguments:
attr: The attribute being modified.
constrs: The constraints whose attribute values are being modified.
newvals: The desired new values for the attribute for each input constraint.
void  set (  GRB.IntAttr  attr, 
GRBConstr[]  constrs,  
int[]  newvals,  
int  start,  
int  len ) 

Set an intvalued constraint attribute for a subarray of constraints.
Arguments:
attr: The attribute being modified.
constrs: A onedimensional array of constraints whose attribute values are being modified.
newvals: 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[][]  newvals ) 

Set an intvalued constraint attribute for a twodimensional array of
constraints.
Arguments:
attr: The attribute being modified.
constrs: A twodimensional array of constraints whose attribute values are being modified.
newvals: The desired new values for the attribute for each input constraint.
void  set (  GRB.IntAttr  attr, 
GRBConstr[][][]  constrs,  
int[][][]  newvals ) 

Set an intvalued constraint attribute for a threedimensional array
of constraints.
Arguments:
attr: The attribute being modified.
constrs: A threedimensional array of constraints whose attribute values are being modified.
newvals: The desired new values for the attribute for each input constraint.
void  set (  GRB.StringAttr  attr, 
String  newval ) 

Set the value of a Stringvalued model attribute.
Arguments:
attr: The attribute being modified.
newval: The desired new value for the attribute.
void  set (  GRB.StringAttr  attr, 
GRBVar[]  vars,  
String[]  newvals ) 

Set a Stringvalued variable attribute for an array of variables.
Arguments:
attr: The attribute being modified.
vars: The variables whose attribute values are being modified.
newvals: The desired new values for the attribute for each input variable.
void  set (  GRB.StringAttr  attr, 
GRBVar[]  vars,  
String[]  newvals,  
int  start,  
int  len ) 

Set a Stringvalued variable attribute for a subarray of variables.
Arguments:
attr: The attribute being modified.
vars: A onedimensional array of variables whose attribute values are being modified.
newvals: 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[][]  newvals ) 

Set a Stringvalued variable attribute for a twodimensional array of
variables.
Arguments:
attr: The attribute being modified.
vars: A twodimensional array of variables whose attribute values are being modified.
newvals: The desired new values for the attribute for each input variable.
void  set (  GRB.StringAttr  attr, 
GRBVar[][][]  vars,  
String[][][]  newvals ) 

Set a Stringvalued variable attribute for a threedimensional array
of variables.
Arguments:
attr: The attribute being modified.
vars: A threedimensional array of variables whose attribute values are being modified.
newvals: The desired new values for the attribute for each input variable.
void  set (  GRB.StringAttr  attr, 
GRBConstr[]  constrs,  
String[]  newvals ) 

Set a Stringvalued constraint attribute for an array of constraints.
Arguments:
attr: The attribute being modified.
constrs: The constraints whose attribute values are being modified.
newvals: The desired new values for the attribute for each input constraint.
void  set (  GRB.StringAttr  attr, 
GRBConstr[]  constrs,  
String[]  newvals,  
int  start,  
int  len ) 

Set a Stringvalued constraint attribute for a subarray of constraints.
Arguments:
attr: The attribute being modified.
constrs: A onedimensional array of constraints whose attribute values are being modified.
newvals: 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[][]  newvals ) 

Set a Stringvalued constraint attribute for a twodimensional array of
constraints.
Arguments:
attr: The attribute being modified.
constrs: A twodimensional array of constraints whose attribute values are being modified.
newvals: The desired new values for the attribute for each input constraint.
void  set (  GRB.StringAttr  attr, 
GRBConstr[][][]  constrs,  
String[][][]  newvals ) 

Set a Stringvalued constraint attribute for a threedimensional array
of constraints.
Arguments:
attr: The attribute being modified.
constrs: A threedimensional array of constraints whose attribute values are being modified.
newvals: The desired new values for the attribute for each input constraint.
void  set (  GRB.StringAttr  attr, 
GRBQConstr[]  qconstrs,  
String[]  newvals ) 

Set a Stringvalued quadratic constraint attribute for an array of quadratic constraints.
Arguments:
attr: The attribute being modified.
qconstrs: The quadratic constraints whose attribute values are being modified.
newvals: The desired new values for the attribute for each input quadratic constraint.
void  set (  GRB.StringAttr  attr, 
GRBQConstr[]  qconstrs,  
String[]  newvals,  
int  start,  
int  len ) 

Set a Stringvalued quadratic constraint attribute for a subarray of quadratic constraints.
Arguments:
attr: The attribute being modified.
qconstrs: A onedimensional array of quadratic constraints whose attribute values are being modified.
newvals: 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[][]  newvals ) 

Set a Stringvalued quadratic constraint attribute for a twodimensional array of
quadratic constraints.
Arguments:
attr: The attribute being modified.
qconstrs: A twodimensional array of quadratic constraints whose attribute values are being modified.
newvals: The desired new values for the attribute for each input quadratic constraint.
void  set (  GRB.StringAttr  attr, 
GRBQConstr[][][]  qconstrs,  
String[][][]  newvals ) 

Set a Stringvalued quadratic constraint attribute for a threedimensional array
of quadratic constraints.
Arguments:
attr: The attribute being modified.
qconstrs: A threedimensional array of quadratic constraints whose attribute values are being modified.
newvals: The desired new values for the attribute for each input quadratic constraint.
void  set (  GRB.StringAttr  attr, 
GRBGenConstr[]  genconstrs,  
String[]  newvals ) 

Set a Stringvalued general constraint attribute for an array of general constraints.
Arguments:
attr: The attribute being modified.
genconstrs: The general constraints whose attribute values are being modified.
newvals: The desired new values for the attribute for each input general constraint.
void  set (  GRB.StringAttr  attr, 
GRBGenConstr[]  genconstrs,  
String[]  newvals,  
int  start,  
int  len ) 

Set a Stringvalued general constraint attribute for a subarray of general constraints.
Arguments:
attr: The attribute being modified.
genconstrs: A onedimensional array of general constraints whose attribute values are being modified.
newvals: The desired new values for the attribute for each input general constraint.
start: The index of the first general constraint of interest in the list.
len: The number of general constraints.
void  set (  GRB.StringAttr  attr, 
GRBGenConstr[][]  genconstrs,  
String[][]  newvals ) 

Set a Stringvalued general constraint attribute for a twodimensional array of
general constraints.
Arguments:
attr: The attribute being modified.
genconstrs: A twodimensional array of general constraints whose attribute values are being modified.
newvals: The desired new values for the attribute for each input general constraint.
void  set (  GRB.StringAttr  attr, 
GRBGenConstr[][][]  genconstrs,  
String[][][]  newvals ) 

Set a Stringvalued general constraint attribute for a threedimensional array
of general constraints.
Arguments:
attr: The attribute being modified.
genconstrs: A threedimensional array of general constraints whose attribute values are being modified.
newvals: The desired new values for the attribute for each input general constraint.