Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Questions relevant to the PuLP modelling framework in Python
3
votes
Any Idea why PuLP is ignoring binary variables?
Some points should be considered.
First, you defined the variable $FlowInternal_{j}$ as the slack variables on the constraints $C_2$ and $C_3$ but, forgot to limit it on the objective function. (For …
3
votes
Find the list with the fewest elements whose cumulative sum reaches threshold
I think the appropriate way to do this is what was proposed by Prof. Rubin, but if you want to use a mathematical approach, the following formulation would be helpful.
\begin{eqnarray}
\text{Max/Min} …
1
vote
Inventory Continuity Equation
It seems you would need to tweak the mentioned model to be close to the standard Multi item-Multi period lot-sizing problem. The following formulation can give you some good starting points.
\begin{ar …
8
votes
1
answer
1k
views
Read an LP/MPS file in the PuLP
I was trying to read a MPS file by using the PuLP package in the Python, but I can't find any related documents on it. Does anybody know, is there any way to read an LP/MPS file on the PuLP? …
1
vote
Accepted
Understanding reduced costs and dual values
One of the best possible ways for the models with some difficulties to understand how the model can be treating in the solving process, specifically in the situations like infeasibility, comparing som …
1
vote
Using PULP to model machines in a factory
I assumed that the mode indicator is a variable otherwise, what you are looking for can be applied by a simple if-then loop on the constraints. To define the first row of your logical expression, it i …
2
votes
Accepted
How to linearize the multiplication by a binary decision variable?
I assumed that your variables are $X_{w}$, $X_{s}$, $X_{e}$, and $p_{t}$. Then as @RobPratt suggested, we can use two separate disjuncts.
$$ W_t X_w+S_t X_s - 0.1 X_e \geq m(1-z_t) \quad (1)$$
$$ p_t …