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
LpStatusOptimal = 1
LpStatusNotSolved = 0
LpStatusInfeasible = -1
LpStatusUnbounded = -2
LpStatusUndefined = -3
Dictionary of values for sense:
LpSenses = {LpMaximize:”Maximize”, LpMinimize:”Minimize”}
LpMinimize = 1
LpMaximize = -1
LpConstraintEQ = 0
LpConstraintLE = -1
LpConstraintGE = 1
| LpConstraint key | symbolic value | numerical value |
|---|---|---|
| LpConstraintEQ | “==” | 0 |
| LpConstraintLE | “<=” | -1 |
| LpConstraintGE | “>=” | 1 |
