__init__ (**kwds)
|
Constructor |
add_block (block)
|
Add a single Pyomo Block to the solver's model. |
add_column (model, var, obj_coef, ...)
|
Add a column to the solver's and Pyomo model |
add_constraint (con)
|
Add a single constraint to the solver's model. |
add_sos_constraint (con)
|
Add a single SOS constraint to the solver's model (if supported). |
add_var (var)
|
Add a single variable to the solver's model. |
available ([exception_flag])
|
Returns True if the solver is available. |
cbCut (con)
|
Add a cut within a callback. |
cbGet (what)
|
|
cbGetNodeRel (vars)
|
|
cbGetSolution (vars)
|
|
cbLazy (con)
|
|
cbSetSolution (vars, solution)
|
|
cbUseSolution ()
|
|
close ()
|
Frees local Gurobi resources used by this solver instance. |
close_global ()
|
Frees all Gurobi models used by this solver, and frees the global default Gurobi environment. |
config_block ([init])
|
|
default_variable_value ()
|
|
get_gurobi_param_info (param)
|
Get information about a gurobi parameter. |
get_linear_constraint_attr (con, attr)
|
Get the value of an attribute on a gurobi linear constraint. |
get_model_attr (attr)
|
Get the value of an attribute on the Gurobi model. |
get_quadratic_constraint_attr (con, attr)
|
Get the value of an attribute on a gurobi quadratic constraint. |
get_sos_attr (con, attr)
|
Get the value of an attribute on a gurobi sos constraint. |
get_var_attr (var, attr)
|
Get the value of an attribute on a gurobi var. |
has_capability (cap)
|
Returns a boolean value representing whether a solver supports a specific feature. |
has_instance ()
|
True if set_instance has been called and this solver interface has a pyomo model and a solver model. |
license_is_valid ()
|
True if the solver is present and has a valid license (if applicable) |
load_duals ([cons_to_load])
|
Load the duals into the 'dual' suffix. |
load_rc (vars_to_load)
|
Load the reduced costs into the 'rc' suffix. |
load_slacks ([cons_to_load])
|
Load the values of the slack variables into the 'slack' suffix. |
load_vars ([vars_to_load])
|
Load the values from the solver's variables into the corresponding pyomo variables. |
problem_format ()
|
Returns the current problem format. |
remove_block (block)
|
Remove a single block from the solver's model. |
remove_constraint (con)
|
Remove a single constraint from the solver's model. |
remove_sos_constraint (con)
|
Remove a single SOS constraint from the solver's model. |
remove_var (var)
|
Remove a single variable from the solver's model. |
reset ()
|
Reset the state of the solver |
results_format ()
|
Returns the current results format. |
set_callback ([func])
|
Specify a callback for gurobi to use. |
set_gurobi_param (param, val)
|
Set a gurobi parameter. |
set_instance (model, **kwds)
|
This method is used to translate the Pyomo model provided to an instance of the solver's Python model. |
set_linear_constraint_attr (con, attr, val)
|
Set the value of an attribute on a gurobi linear constraint. |
set_objective (obj)
|
Set the solver's objective. |
set_options (istr)
|
|
set_problem_format (format)
|
Set the current problem format (if it's valid) and update the results format to something valid for this problem format. |
set_results_format (format)
|
Set the current results format (if it's valid for the current problem format). |
set_var_attr (var, attr, val)
|
Set the value of an attribute on a gurobi variable. |
solve (*args, **kwds)
|
Solve the model. |
update ()
|
|
update_var (var)
|
Update a single variable in the solver's model. |
version ()
|
Returns a 4-tuple describing the solver executable version. |
warm_start_capable ()
|
True is the solver can accept a warm-start solution |
write (filename)
|
Write the model to a file (e.g., and lp file). |