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.

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.