pyepo.model.grb.grbmodel
Abstract optimization model based on GurobiPy
Module Contents
Classes
This is an abstract class for Gurobi-based optimization model |
- class pyepo.model.grb.grbmodel.optGrbModel
Bases:
pyepo.model.opt.optModel
This is an abstract class for Gurobi-based optimization model
- _model
Gurobi model
- Type:
GurobiPy model
- property num_cost
number of cost to be predicted
- __repr__()
Return repr(self).
- setObj(c)
A method to set objective function
- Parameters:
c (np.ndarray / list) – cost of objective function
- solve()
A method to solve model
- Returns:
optimal solution (list) and objective value (float)
- Return type:
tuple