Documentation


GRBModel.get()

Query 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.

double get ( GRB.DoubleParam param )

    Query the value of a double-valued parameter.

    Arguments:

    param: The parameter being queried.

    Return value:

    The current value of the requested parameter.

int get ( GRB.IntParam param )

    Query the value of an int-valued parameter.

    Arguments:

    param: The parameter being queried.

    Return value:

    The current value of the requested parameter.

String get ( GRB.StringParam param )

    Query the value of a string-valued parameter.

    Arguments:

    param: The parameter being queried.

    Return value:

    The current value of the requested parameter.

char[] get ( GRB.CharAttr attr,
    GRBVar[] vars )
    Query a char-valued variable attribute for an array of variables.

    Arguments:

    attr: The attribute being queried.

    vars: The variables whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input variable.

char[] get ( GRB.CharAttr attr,
    GRBVar[] vars,
    int start,
    int len )
    Query a char-valued variable attribute for a sub-array of variables.

    Arguments:

    attr: The attribute being queried.

    vars: A one-dimensional array of variables whose attribute values are being queried.

    start: The index of the first variable of interest in the list.

    len: The number of variables.

    Return value:

    The current values of the requested attribute for each input variable.

char[][] get ( GRB.CharAttr attr,
    GRBVar[][] vars )
    Query a char-valued variable attribute for a two-dimensional array of variables.

    Arguments:

    attr: The attribute being queried.

    vars: A two-dimensional array of variables whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input variable.

char[][][] get ( GRB.CharAttr attr,
    GRBVar[][][] vars )
    Query a char-valued variable attribute for a three-dimensional array of variables.

    Arguments:

    attr: The attribute being queried.

    vars: A three-dimensional array of variables whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input variable.

char[] get ( GRB.CharAttr attr,
    GRBConstr[] constrs )
    Query a char-valued constraint attribute for an array of constraints.

    Arguments:

    attr: The attribute being queried.

    constrs: The constraints whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input constraint.

char[] get ( GRB.CharAttr attr,
    GRBConstr[] constrs,
    int start,
    int len )
    Query a char-valued constraint attribute for a sub-array of constraints.

    Arguments:

    attr: The attribute being queried.

    constrs: A one-dimensional array of constraints whose attribute values are being queried.

    start: The index of the first constraint of interest in the list.

    len: The number of constraints.

    Return value:

    The current values of the requested attribute for each input constraint.

char[][] get ( GRB.CharAttr attr,
    GRBConstr[][] constrs )
    Query a char-valued constraint attribute for a two-dimensional array of constraints.

    Arguments:

    attr: The attribute being queried.

    constrs: A two-dimensional array of constraints whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input constraint.

char[][][] get ( GRB.CharAttr attr,
    GRBConstr[][][] constrs )
    Query a char-valued constraint attribute for a three-dimensional array of constraints.

    Arguments:

    attr: The attribute being queried.

    constrs: A three-dimensional array of constraints whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input constraint.

char[] get ( GRB.CharAttr attr,
    GRBQConstr[] qconstrs )
    Query a char-valued quadratic constraint attribute for an array of quadratic constraints.

    Arguments:

    attr: The attribute being queried.

    qconstrs: The quadratic constraints whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input quadratic constraint.

char[] get ( GRB.CharAttr attr,
    GRBQConstr[] qconstrs,
    int start,
    int len )
    Query a char-valued quadratic constraint attribute for a sub-array of quadratic constraints.

    Arguments:

    attr: The attribute being queried.

    qconstrs: A one-dimensional array of quadratic constraints whose attribute values are being queried.

    start: The index of the first quadratic constraint of interest in the list.

    len: The number of quadratic constraints.

    Return value:

    The current values of the requested attribute for each input quadratic constraint.

char[][] get ( GRB.CharAttr attr,
    GRBQConstr[][] qconstrs )
    Query a char-valued quadratic constraint attribute for a two-dimensional array of quadratic constraints.

    Arguments:

    attr: The attribute being queried.

    qconstrs: A two-dimensional array of quadratic constraints whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input quadratic constraint.

char[][][] get ( GRB.CharAttr attr,
    GRBQConstr[][][] qconstrs )
    Query a char-valued quadratic constraint attribute for a three-dimensional array of quadratic constraints.

    Arguments:

    attr: The attribute being queried.

    qconstrs: A three-dimensional array of quadratic constraints whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input quadratic constraint.

double get ( GRB.DoubleAttr attr )

    Query the value of a double-valued model attribute.

    Arguments:

    attr: The attribute being queried.

    Return value:

    The current value of the requested attribute.

double[] get ( GRB.DoubleAttr attr,
    GRBVar[] vars )
    Query a double-valued variable attribute for an array of variables.

    Arguments:

    attr: The attribute being queried.

    vars: The variables whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input variable.

double[] get ( GRB.DoubleAttr attr,
    GRBVar[] vars,
    int start,
    int len )
    Query a double-valued variable attribute for a sub-array of variables.

    Arguments:

    attr: The attribute being queried.

    vars: A one-dimensional array of variables whose attribute values are being queried.

    start: The index of the first variable of interest in the list.

    len: The number of variables.

    Return value:

    The current values of the requested attribute for each input variable.

double[][] get ( GRB.DoubleAttr attr,
    GRBVar[][] vars )
    Query a double-valued variable attribute for a two-dimensional array of variables.

    Arguments:

    attr: The attribute being queried.

    vars: A two-dimensional array of variables whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input variable.

double[][][] get ( GRB.DoubleAttr attr,
    GRBVar[][][] vars )
    Query a double-valued variable attribute for a three-dimensional array of variables.

    Arguments:

    attr: The attribute being queried.

    vars: A three-dimensional array of variables whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input variable.

double[] get ( GRB.DoubleAttr attr,
    GRBConstr[] constrs )
    Query a double-valued constraint attribute for an array of constraints.

    Arguments:

    attr: The attribute being queried.

    constrs: The constraints whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input constraint.

double[] get ( GRB.DoubleAttr attr,
    GRBConstr[] constrs,
    int start,
    int len )
    Query a double-valued constraint attribute for a sub-array of constraints.

    Arguments:

    attr: The attribute being queried.

    constrs: A one-dimensional array of constraints whose attribute values are being queried.

    start: The first constraint of interest in the list.

    len: The number of constraints.

    Return value:

    The current values of the requested attribute for each input constraint.

double[][] get ( GRB.DoubleAttr attr,
    GRBConstr[][] constrs )
    Query a double-valued constraint attribute for a two-dimensional array of constraints.

    Arguments:

    attr: The attribute being queried.

    constrs: A two-dimensional array of constraints whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input constraint.

double[][][] get ( GRB.DoubleAttr attr,
    GRBConstr[][][] constrs )
    Query a double-valued constraint attribute for a three-dimensional array of constraints.

    Arguments:

    attr: The attribute being queried.

    constrs: A three-dimensional array of constraints whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input constraint.

double[] get ( GRB.DoubleAttr attr,
    GRBQConstr[] qconstrs )
    Query a double-valued quadratic constraint attribute for an array of quadratic constraints.

    Arguments:

    attr: The attribute being queried.

    qconstrs: The quadratic constraints whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input quadratic constraint.

double[] get ( GRB.DoubleAttr attr,
    GRBQConstr[] qconstrs,
    int start,
    int len )
    Query a double-valued quadratic constraint attribute for a sub-array of quadratic constraints.

    Arguments:

    attr: The attribute being queried.

    qconstrs: A one-dimensional array of quadratic constraints whose attribute values are being queried.

    start: The first quadratic constraint of interest in the list.

    len: The number of quadratic constraints.

    Return value:

    The current values of the requested attribute for each input quadratic constraint.

double[][] get ( GRB.DoubleAttr attr,
    GRBQConstr[][] qconstrs )
    Query a double-valued quadratic constraint attribute for a two-dimensional array of quadratic constraints.

    Arguments:

    attr: The attribute being queried.

    qconstrs: A two-dimensional array of quadratic constraints whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input quadratic constraint.

double[][][] get ( GRB.DoubleAttr attr,
    GRBQConstr[][][] qconstrs )
    Query a double-valued quadratic constraint attribute for a three-dimensional array of quadratic constraints.

    Arguments:

    attr: The attribute being queried.

    qconstrs: A three-dimensional array of quadratic constraints whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input quadratic constraint.

int get ( GRB.IntAttr attr )

    Query the value of an int-valued model attribute.

    Arguments:

    attr: The attribute being queried.

    Return value:

    The current value of the requested attribute.

int[] get ( GRB.IntAttr attr,
    GRBVar[] vars )
    Query an int-valued variable attribute for an array of variables.

    Arguments:

    attr: The attribute being queried.

    vars: The variables whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input variable.

int[] get ( GRB.IntAttr attr,
    GRBVar[] vars,
    int start,
    int len )
    Query an int-valued variable attribute for a sub-array of variables.

    Arguments:

    attr: The attribute being queried.

    vars: A one-dimensional array of variables whose attribute values are being queried.

    start: The index of the first variable of interest in the list.

    len: The number of variables.

    Return value:

    The current values of the requested attribute for each input variable.

int[][] get ( GRB.IntAttr attr,
    GRBVar[][] vars )
    Query an int-valued variable attribute for a two-dimensional array of variables.

    Arguments:

    attr: The attribute being queried.

    vars: A two-dimensional array of variables whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input variable.

int[][][] get ( GRB.IntAttr attr,
    GRBVar[][][] vars )
    Query an int-valued variable attribute for a three-dimensional array of variables.

    Arguments:

    attr: The attribute being queried.

    vars: A three-dimensional array of variables whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input variable.

int[] get ( GRB.IntAttr attr,
    GRBConstr[] constrs )
    Query an int-valued constraint attribute for an array of constraints.

    Arguments:

    attr: The attribute being queried.

    constrs: The constraints whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input constraint.

int[] get ( GRB.IntAttr attr,
    GRBConstr[] constrs,
    int start,
    int len )
    Query an int-valued constraint attribute for a sub-array of constraints.

    Arguments:

    attr: The attribute being queried.

    constrs: A one-dimensional array of constraints whose attribute values are being queried.

    start: The index of the first constraint of interest in the list.

    len: The number of constraints.

    Return value:

    The current values of the requested attribute for each input constraint.

int[][] get ( GRB.IntAttr attr,
    GRBConstr[][] constrs )
    Query an int-valued constraint attribute for a two-dimensional array of constraints.

    Arguments:

    attr: The attribute being queried.

    constrs: A two-dimensional array of constraints whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input constraint.

int[][][] get ( GRB.IntAttr attr,
    GRBConstr[][][] constrs )
    Query an int-valued constraint attribute for a three-dimensional array of constraints.

    Arguments:

    attr: The attribute being queried.

    constrs: A three-dimensional array of constraints whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input constraint.

int[] get ( GRB.IntAttr attr,
    GRBQConstr[] qconstrs )
    Query an int-valued quadratic constraint attribute for an array of quadratic constraints.

    Arguments:

    attr: The attribute being queried.

    qconstrs: The quadratic constraints whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input quadratic constraint.

int[] get ( GRB.IntAttr attr,
    GRBQConstr[] qconstrs,
    int start,
    int len )
    Query an int-valued quadratic constraint attribute for a sub-array of quadratic constraints.

    Arguments:

    attr: The attribute being queried.

    qconstrs: A one-dimensional array of quadratic constraints whose attribute values are being queried.

    start: The index of the first quadratic constraint of interest in the list.

    len: The number of quadratic constraints.

    Return value:

    The current values of the requested attribute for each input quadratic constraint.

int[][] get ( GRB.IntAttr attr,
    GRBQConstr[][] qconstrs )
    Query an int-valued quadratic constraint attribute for a two-dimensional array of quadratic constraints.

    Arguments:

    attr: The attribute being queried.

    qconstrs: A two-dimensional array of quadratic constraints whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input quadratic constraint.

int[][][] get ( GRB.IntAttr attr,
    GRBQConstr[][][] qconstrs )
    Query an int-valued quadratic constraint attribute for a three-dimensional array of quadratic constraints.

    Arguments:

    attr: The attribute being queried.

    qconstrs: A three-dimensional array of quadratic constraints whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input quadratic constraint.

int[] get ( GRB.IntAttr attr,
    GRBGenConstr[] genconstrs )
    Query an int-valued general constraint attribute for an array of general constraints.

    Arguments:

    attr: The attribute being queried.

    genconstrs: The general constraints whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input general constraint.

int[] get ( GRB.IntAttr attr,
    GRBGenConstr[] genconstrs,
    int start,
    int len )
    Query an int-valued general constraint attribute for a sub-array of general constraints.

    Arguments:

    attr: The attribute being queried.

    genconstrs: A one-dimensional array of general constraints whose attribute values are being queried.

    start: The index of the first general constraint of interest in the list.

    len: The number of general constraints.

    Return value:

    The current values of the requested attribute for each input general constraint.

int[][] get ( GRB.IntAttr attr,
    GRBGenConstr[][] genconstrs )
    Query an int-valued general constraint attribute for a two-dimensional array of general constraints.

    Arguments:

    attr: The attribute being queried.

    genconstrs: A two-dimensional array of general constraints whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input general constraint.

int[][][] get ( GRB.IntAttr attr,
    GRBGenConstr[][][] genconstrs )
    Query an int-valued general constraint attribute for a three-dimensional array of general constraints.

    Arguments:

    attr: The attribute being queried.

    genconstrs: A three-dimensional array of general constraints whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input general constraint.

String get ( GRB.StringAttr attr )

    Query the value of a string-valued model attribute.

    Arguments:

    attr: The attribute being queried.

    Return value:

    The current value of the requested attribute.

String[] get ( GRB.StringAttr attr,
    GRBVar[] vars )
    Query a String-valued variable attribute for an array of variables.

    Arguments:

    attr: The attribute being queried.

    vars: The variables whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input variable.

String[] get ( GRB.StringAttr attr,
    GRBVar[] vars,
    int start,
    int len )
    Query a String-valued variable attribute for a sub-array of variables.

    Arguments:

    attr: The attribute being queried.

    vars: A one-dimensional array of variables whose attribute values are being queried.

    start: The index of the first variable of interest in the list.

    len: The number of variables.

    Return value:

    The current values of the requested attribute for each input variable.

String[][] get ( GRB.StringAttr attr,
    GRBVar[][] vars )
    Query a String-valued variable attribute for a two-dimensional array of variables.

    Arguments:

    attr: The attribute being queried.

    vars: A two-dimensional array of variables whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input variable.

String[][][] get ( GRB.StringAttr attr,
    GRBVar[][][] vars )
    Query a String-valued variable attribute for a three-dimensional array of variables.

    Arguments:

    attr: The attribute being queried.

    vars: A three-dimensional array of variables whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input variable.

String[] get ( GRB.StringAttr attr,
    GRBConstr[] constrs )
    Query a String-valued constraint attribute for an array of constraints.

    Arguments:

    attr: The attribute being queried.

    constrs: The constraints whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input constraint.

String[] get ( GRB.StringAttr attr,
    GRBConstr[] constrs,
    int start,
    int len )
    Query a String-valued constraint attribute for a sub-array of constraints.

    Arguments:

    attr: The attribute being queried.

    constrs: A one-dimensional array of constraints whose attribute values are being queried.

    start: The index of the first constraint of interest in the list.

    len: The number of constraints.

    Return value:

    The current values of the requested attribute for each input constraint.

String[][] get ( GRB.StringAttr attr,
    GRBConstr[][] constrs )
    Query a String-valued constraint attribute for a two-dimensional array of constraints.

    Arguments:

    attr: The attribute being queried.

    constrs: A two-dimensional array of constraints whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input constraint.

String[][][] get ( GRB.StringAttr attr,
    GRBConstr[][][] constrs )
    Query a String-valued constraint attribute for a three-dimensional array of constraints.

    Arguments:

    attr: The attribute being queried.

    constrs: A three-dimensional array of constraints whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input constraint.

String[] get ( GRB.StringAttr attr,
    GRBQConstr[] qconstrs )
    Query a String-valued quadratic constraint attribute for an array of quadratic constraints.

    Arguments:

    attr: The attribute being queried.

    qconstrs: The quadratic constraints whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input quadratic constraint.

String[] get ( GRB.StringAttr attr,
    GRBQConstr[] qconstrs,
    int start,
    int len )
    Query a String-valued quadratic constraint attribute for a sub-array of quadratic constraints.

    Arguments:

    attr: The attribute being queried.

    qconstrs: A one-dimensional array of quadratic constraints whose attribute values are being queried.

    start: The index of the first quadratic constraint of interest in the list.

    len: The number of quadratic constraints.

    Return value:

    The current values of the requested attribute for each input quadratic constraint.

String[][] get ( GRB.StringAttr attr,
    GRBQConstr[][] qconstrs )
    Query a String-valued quadratic constraint attribute for a two-dimensional array of quadratic constraints.

    Arguments:

    attr: The attribute being queried.

    qconstrs: A two-dimensional array of quadratic constraints whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input quadratic constraint.

String[][][] get ( GRB.StringAttr attr,
    GRBQConstr[][][] qconstrs )
    Query a String-valued quadratic constraint attribute for a three-dimensional array of quadratic constraints.

    Arguments:

    attr: The attribute being queried.

    qconstrs: A three-dimensional array of quadratic constraints whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input quadratic constraint.

String[] get ( GRB.StringAttr attr,
    GRBGenConstr[] genconstrs )
    Query a String-valued general constraint attribute for an array of general constraints.

    Arguments:

    attr: The attribute being queried.

    genconstrs: The general constraints whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input general constraint.

String[] get ( GRB.StringAttr attr,
    GRBGenConstr[] genconstrs,
    int start,
    int len )
    Query a String-valued general constraint attribute for a sub-array of constraints.

    Arguments:

    attr: The attribute being queried.

    genconstrs: A one-dimensional array of general constraints whose attribute values are being queried.

    start: The index of the first general constraint of interest in the list.

    len: The number of general constraints.

    Return value:

    The current values of the requested attribute for each input general constraint.

String[][] get ( GRB.StringAttr attr,
    GRBGenConstr[][] genconstrs )
    Query a String-valued constraint attribute for a two-dimensional array of general constraints.

    Arguments:

    attr: The attribute being queried.

    genconstrs: A two-dimensional array of general constraints whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input general constraint.

String[][][] get ( GRB.StringAttr attr,
    GRBGenConstr[][][] genconstrs )
    Query a String-valued constraint attribute for a three-dimensional array of general constraints.

    Arguments:

    attr: The attribute being queried.

    genconstrs: A three-dimensional array of general constraints whose attribute values are being queried.

    Return value:

    The current values of the requested attribute for each input general constraint.