Skip to content
Simone Mosco edited this page Feb 21, 2022 · 3 revisions

The Model class represent a LP problem or an ILP problem in tableau form.

A Model is created in the following way:

model = Model(tableau, basic_var, integer)

Parameters

  • tableau: a numpy array representing the tableau on which perform the operations
  • basic_var: a python list containing integer values corresponing to the initial basic variables
  • integer: a boolean value for integer solution (0 for LP, 1 for ILP)

Attributes

  • tableau: numpy array corresponding to the current tableau associated with the model
  • basic_var: python list representing the current indexes of the basic variables
  • integer: boolean value which tell if the model is LP or ILP
  • solution: python list representing the solution associated with the tableau, if exists
  • z: integer value that is the optimal value, if exists
  • optimal: boolean value, true if the tableau is in optimal form, false otherwise
  • unbounded: boolean value, true if the problem associated is unbounded, false at the beginning
  • infeasible: boolean value, true if the problem is infeasible, false otherwise
Clone this wiki locally