GRBModel::set()

Set the value(s) of an attribute. Use this method for scalar model attributes and for arrays of constraint or variable attributes.

void set ( GRB_CharAttr attr,
    const GRBVar* vars,
    char* newvalues,
    int count )

void set ( GRB_CharAttr attr,
    const GRBConstr* constrs,
    char* newvalues,
    int count )

void set ( GRB_CharAttr attr,
    const GRBQConstr* qconstrs,
    char* newvalues,
    int count )

void set ( GRB_DoubleAttr attr,
    double newvalue )

void set ( GRB_DoubleAttr attr,
    const GRBVar* vars,
    double* newvalues,
    int count )

void set ( GRB_DoubleAttr attr,
    const GRBConstr* constrs,
    double* newvalues,
    int count )

void set ( GRB_DoubleAttr attr,
    const GRBQConstr* qconstrs,
    double* newvalues,
    int count )

void set ( GRB_IntAttr attr,
    int newvalue )

void set ( GRB_IntAttr attr,
    const GRBVar* vars,
    int* newvalues,
    int count )

void set ( GRB_IntAttr attr,
    const GRBConstr* constrs,
    int* newvalues,
    int count )

void set ( GRB_StringAttr attr,
    string newvalue )

void set ( GRB_StringAttr attr,
    const GRBVar* vars,
    string* newvalues,
    int count )

void set ( GRB_StringAttr attr,
    const GRBConstr* constrs,
    string* newvalues,
    int count )

void set ( GRB_StringAttr attr,
    const GRBQConstr* qconstrs,
    string* newvalues,
    int count )