Skip to main content

Questions tagged [pulp]

Questions relevant to the PuLP modelling framework in Python

15 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7 votes
0 answers
156 views

Why does PuLP call copy for addition and how can I avoid it?

Using a for loop to append terms to an expression seems to be much faster than summing a group of terms all at once. Constructing the expression using a for loop uses __iadd__, which does not include ...
Charles Fox's user avatar
3 votes
0 answers
98 views

PuLP Python: How to linearize an inequality involving an integer variable

I am working on a Copper payables problem where the objective function is to maximise the sum of copper payable over a time period, T. The total amount of payable tonnes i.e. what the customer will ...
cmp's user avatar
  • 327
3 votes
0 answers
959 views

How can I see the engine log when solving a LP using pulp (python)?

I wonder which command should I use to see how the steps the pulp solver is doing when solving a linear program.
Pep's user avatar
  • 39
3 votes
0 answers
106 views

Constraint equivalence in PuLP

I'm working on an optimization problem in PuLP and I have to enforce a daily minimum of shifts and a daily maximum of assigned shifts. I have the following constraints to ensure each day has a minimum ...
Joep's user avatar
  • 101
2 votes
0 answers
135 views

Seeking help in pulp scheduling problem

I have successfully implemented a program where I allocate N truck drivers to M gathering hubs for each one of the days of the ...
azal's user avatar
  • 153
1 vote
0 answers
305 views

Problem of optimal solution generated with Pulp

I'm trying to use Pulp to solve VRP problem. Here is the model: ...
MAYA's user avatar
  • 129
1 vote
0 answers
172 views

Profit Optimization in Python with Difficult Constraints to Maximize Net Revenue

I am currently trying to work on this problem that determines the best constraints on how to place these 'bids'- please see the second column in the screenshot: The ask at hand is to uncover a model ...
mty514's user avatar
  • 11
1 vote
0 answers
135 views

Resource constrained LP problem

I am working on Diet Allocation problem. Where we need to provide food piece for protein deficiency. The data is as below: ...
Greg's user avatar
  • 19
0 votes
0 answers
35 views

Binary variable taking floating values in multi trip VRP with TW

I am trying to solve a multi trip VRP with time windows in pulp (minimizing total distance travelled). The code is providing optimal results for multi trip VRP without time window constraints (however ...
dannyG's user avatar
  • 1
0 votes
0 answers
58 views

Need help for the python scheduling code

I'm working on a Python application using PuLP for optimization, and I'm having trouble ensuring that only one material is produced on a given day. The constraint prob += pulp.lpSum(production_flag[m][...
Beau Ryan's user avatar
0 votes
0 answers
33 views

Shipment Allocation using Pulp

I am trying to create a model where each shipment must be allocated to a route to minimize the freight cost. I am a complete newbie at LP Optimization. Explanation of dataset: Every destination (D1,...
Jayit Ghosh's user avatar
0 votes
2 answers
117 views

Extracting a sequence as a decision variable from a matrix (PuLP)

I am solving a sequencing problem x[i][j], i.e. a binary matrix indicating that product i is followed by ...
Jigeli's user avatar
  • 19
0 votes
1 answer
108 views

Ensure complete cycle in binary succession matrix LP [PuLP]

I have a set of orders N, for which i have to determine an optimal sequence. I wrap this decision within a binary matrix x[i][j], meaning whether i is succeeded by j. For example [[0 1 0 0] [0 0 1 0] [...
QuestioningPanda's user avatar
0 votes
0 answers
194 views

Detect presolve status in pulp model

I am running a model using pulp CBC and have few constraints in the model that may make the model infeasible if wrong input is given to the model. I can see while my model runs that in case of ...
Bhavya Budhia's user avatar
0 votes
1 answer
73 views

Issue with Mathematical Model Using PuLP Library

I'm working on a pulp python code for the MS-RCPSP (multi-skilled resource-constrained project scheduling problem), I need to update the code to address a specific scenario: when an activity requires ...
John Donald's user avatar