2,641 questions
2
votes
1
answer
60
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
71
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
42
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
205
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
28
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
153
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
36
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 ...
0
votes
0
answers
46
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 ...
2
votes
3
answers
71
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
42
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 ...
0
votes
1
answer
29
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 ...
0
votes
1
answer
174
views
PuLP Solvers Not Available
I am running an LP using pulp but getting the error AttributeError: 'NoneType' object has no attribute 'actualSolve'. So I found this post on determining the solvers that are available. This directed ...
0
votes
1
answer
52
views
GLPK.js : How to add a constraint which set incompatible upper and lower bounds?
I'm working on an app which aims to give an optimized weekly planning considering multiple constraints ( Hours per week, availabilities of each person, etc... ). My app is built entirely with node js, ...
0
votes
0
answers
113
views
How to linearize the product of two continuous variables?
I'm trying to solve a MILP problem in Matlab Optimization Toolbox. I'm encountering with problems with the product of two decision variable of my problem which are bounded.
0<= x <= 60
0 <= ...
0
votes
1
answer
55
views
Python Pulp LP leaving rooms unassigned and penalties/constraints not preventing that
I am having difficulty getting all classrooms to be assigned to a class for a room assignment problem. I am using a grid calculated based on class capacity & room capacity (values 0-1). ...