This file contains the constant definitions for PuLP Note that hopefully these will be changed into something more pythonic
Return status from solver:
LpStatus key string value numerical value LpStatusOptimal “Optimal” 1 LpStatusNotSolved “Not Solved” 0 LpStatusInfeasible “Infeasible” -1 LpStatusUnbounded “Unbounded” -2 LpStatusUndefined “Undefined” -3
LpStatusNotSolved = 0
LpStatusUndefined = -3
Dictionary of values for sense:
LpSenses = {LpMaximize:”Maximize”, LpMinimize:”Minimize”}
LpConstraint key | symbolic value | numerical value |
---|---|---|
LpConstraintEQ | “==” | 0 |
LpConstraintLE | “<=” | -1 |
LpConstraintGE | “>=” | 1 |