pulp.constants

This file contains the constant definitions for PuLP Note that hopefully these will be changed into something more pythonic

pulp.constants.isiterable(obj)
pulp.constants.LpStatus

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
pulp.constants.LpStatusOptimal
LpStatusOptimal = 1
pulp.constants.LpStatusNotSolved
LpStatusNotSolved = 0
pulp.constants.LpStatusInfeasible
LpStatusInfeasible = -1
pulp.constants.LpStatusUnbounded
LpStatusUnbounded = -2
pulp.constants.LpStatusUndefined
LpStatusUndefined = -3
pulp.constants.LpSenses

Dictionary of values for sense:

LpSenses = {LpMaximize:”Maximize”, LpMinimize:”Minimize”}
pulp.constants.LpMinimize
LpMinimize = 1
pulp.constants.LpMaximize
LpMaximize = -1
pulp.constants.LpConstraintEQ
LpConstraintEQ = 0
pulp.constants.LpConstraintLE
LpConstraintLE = -1
pulp.constants.LpConstraintGE
LpConstraintGE = 1
pulp.constants.LpConstraintSenses
LpConstraint key symbolic value numerical value
LpConstraintEQ “==” 0
LpConstraintLE “<=” -1
LpConstraintGE “>=” 1

Previous topic

A Sudoku Problem formulated as an LP

Next topic

pulp: Pulp classes

This Page

Creative Commons License
PuLP documentation by Pulp documentation team is licensed under a Creative Commons Attribution-Share Alike 3.0 New Zealand License.