Questions tagged [pulp]
Questions relevant to the PuLP modelling framework in Python
9
questions with no upvoted or accepted answers
7
votes
0
answers
147
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 ...
3
votes
0
answers
80
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 ...
3
votes
0
answers
713
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.
3
votes
0
answers
97
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 ...
2
votes
0
answers
123
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 ...
1
vote
0
answers
192
views
Problem of optimal solution generated with Pulp
I'm trying to use Pulp to solve VRP problem. Here is the model:
...
1
vote
0
answers
133
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 ...
1
vote
0
answers
131
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:
...
0
votes
0
answers
65
views
Detect presolve status in pulp model
Hi 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 ...