2,632 questions
0
votes
1
answer
80
views
Overcome non-linear constraints with new design?
I am new to linear programming and I am playing with solving the following task with linear programming using the most recent versions of GLPK (https://www.gnu.org/software/glpk/) and MathProg (https:/...
Tooling
0
votes
0
replies
74
views
Good packages for bounded Linear Quantile Regression?
I'm looking for a good package to train a linear quantile regression model, i.e. $\hat y = \sum_{i=1}^n w_i \cdot X_i$. With $x_i$ are the input features, and $w_i$ are the bounded trainable weights. ...
0
votes
1
answer
182
views
Why doesn't scipy.optimize.milp respect the time_limit parameter?
I'm running an optimization problem using scipy MILP function. I get to the point where the solving report pops up, either through time limit or solution (see below). When the solving report pops up, ...
3
votes
2
answers
117
views
lpSolve issue with no feasible solution
I'm trying to select 5 values in the first row, 1 value in rows 2-9, and maximize the objective function. The only thing I can't figure out how to embed in the problem is that I can only choose a ...
1
vote
1
answer
152
views
Python raw material inventory optimizer
I want to build a function that can look at the raw material on hand information I provide, then come up with combinations of inputs to achieve a desired number of finished products.
on_hand_inventory ...
0
votes
2
answers
143
views
New(ish) to Pyomo - How Do I Structure This Model? [closed]
I'm relatively new to both Python and Pyomo. I'm building an optimization script as one of my first projects. ChatGPT is hallucinating and I cannot find an example of how to properly set up the model ...
2
votes
1
answer
90
views
Suggestion needed for enhancing problem formulation for constraint programming
I'm trying to formulize a constraint programming solution for item allocation on shelf. The goal is simple items belonging to same brand should be kept as close as possible and should maintain a ...
1
vote
2
answers
272
views
Linear Programming with `good_lp`: Define a tolerance gap like in PuLP
I have the following example of a small example of a linear program in Rust:
use good_lp::{variables, variable, default_solver, SolverModel, Solution, constraint};
fn main() {
// Declaring binary ...
1
vote
1
answer
86
views
Find the linear combination of vectors to find a vector obeying constraints
I have a set of 3 complex vectors, I want to a find a linear combination of these vectors that would amount to an offset (y = c) - like an array with all elements equal to each other, within a ...
0
votes
1
answer
241
views
Python script for picking a randomly selected point that satisfies some linear inequalities
I want to make a python script, which takes in a list of inequalities as input.
Each inequality is a list:
[c0, c1, ..., cn]
which represents the following:
c0 + c1x1 + c2x2 + ...+ cnxn ≤ 0
I ...
0
votes
1
answer
47
views
Docplex use for timeseries based variables
I am trying to model an optimisation problem where each item in a list is essentially power generated at that hour. I am trying to minimise the amount of energy stored while still getting the same ...
2
votes
1
answer
226
views
Getting Infeasibility while solving constraint programming for shelf space allocation problem
I'm trying to allocate shelf space to items on planogram using constraint programming. It is a big problem and I'm trying to implement piece by piece. At first we're just trying to place items on ...
0
votes
1
answer
66
views
How it is possible to solve one LP (Simplex) per thread in parallel?
I need to solve one LP per thread at the same time.
I'm coding in Matlab and using gurobi as a solver. Since gurobi is an API that actually run calculations in C++, I'm unable to use several threads ...
1
vote
3
answers
130
views
Problem with a Lineup Optimizer due to players having multiple Positions
i have a list of Hitters in python with their name,projection and Positions
juan-soto 30.3773 ['OF']
kyle-tucker 44.0626 ['OF']
...
yordan-alvarez 32.510200000000005 ['CI', 'OF']
william-contreras 26....
1
vote
1
answer
95
views
Constraint-based optimizing the decision threshold of a prediction model
I am working on optimizing the decision threshold of a trained decision model for a binary case (targets 0 and 1). I want to optimize the decision threshold of the model, i.e. the point at which the ...