Skip to main content
0 votes
1 answer
115 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, ...
stackoverflowuser124112's user avatar
3 votes
2 answers
106 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 ...
BSHuniversity's user avatar
1 vote
1 answer
127 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 ...
LT_AKR's user avatar
  • 81
0 votes
2 answers
130 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 ...
newbootgoofing's user avatar
2 votes
1 answer
83 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 ...
Anand's user avatar
  • 391
1 vote
2 answers
122 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 ...
hallo007's user avatar
  • 123
1 vote
1 answer
63 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 ...
Spectroscopist1812's user avatar
0 votes
1 answer
231 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​ + c1​x1 ​+ c2​x2 ​+ ...+ cn​xn ​≤ 0 I ...
Michael Zheng's user avatar
0 votes
1 answer
34 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 ...
Trev's user avatar
  • 21
2 votes
1 answer
210 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 ...
Anand's user avatar
  • 391
0 votes
1 answer
52 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 ...
Alekzei Vallarfax's user avatar
0 votes
0 answers
64 views

Constraint.Feasible does not return callable constraints

I am currently working with an LP-problem and Pyomo. There I am generating different constraints based on some input parameters. The structure of the constraint generation is the following: The ...
Chris S's user avatar
2 votes
3 answers
123 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....
markus's user avatar
  • 21
1 vote
1 answer
64 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 ...
emil's user avatar
  • 343
0 votes
1 answer
55 views

Reduced Costs in IBM ILOG CPLEX Optimization Studio

In this Stack Overflow post, they give the code to find the solution duals (shadow prices). execute { writeln(ctMaxTotal.dual); writeln(ctMaxTotal2.dual); writeln(ctMaxChloride.dual); } What is the ...
David Coley's user avatar

15 30 50 per page
1
2 3 4 5
176