Try our new documentation site (beta).
Filter Content By
Version
Text Search
${sidebar_list_label} - Back
Filter by Language
Model.cbGet()
cbGet ( what )
Query the optimizer from within the user callback.
Arguments:
what: Integer code that indicates what type of information is being requested by the callback. The set of valid codes depends on the where value that is passed into the user callback function. Please refer to the Callback Codes section for a list of possible where and what values.
Example usage:
def mycallback(model, where): if where == GRB.Callback.SIMPLEX: print model.cbGet(GRB.Callback.SPX_OBJVAL) model.optimize(mycallback)