Specific and general Pyomo binary knapsack models

Key features of this model:

  • Description: Select items to include in a knapsack, where inclusion is a binary choice.
  • Category: Knapsack.
  • Type: MILP.
  • Library: Pyomo.
  • Solver: GLPK.

Notes:

  • Specific model: hard-codes coefficients in the expressions.
  • General model: specifies coefficients using data structures.

GitHub: Specific and general Pyomo binary knapsack models.