pybnb.pyomo.problem

A Base class for defining a branch-and-bound problem based on a pyomo.kernel model.

Copyright by Gabriel A. Hackebeil (gabe.hackebeil@gmail.com).

class pybnb.pyomo.problem.PyomoProblem(*args, **kwds)[source]

An extension of the pybnb.Problem base class for defining problems with a core Pyomo model.

property pyomo_object_to_cid

The map from pyomo model object to component id.

property cid_to_pyomo_object

The map from component id to pyomo model object.

property pyomo_model

Returns the pyomo model for this problem.

Note

This method is abstract and must be defined by the user.

property pyomo_model_objective

Returns the pyomo model objective for this problem.

Note

This method is abstract and must be defined by the user.

sense()[source]

Returns the objective sense for this problem.

Note

This method is abstract and must be defined by the user.