Skip to main content
Filter by
Sorted by
Tagged with
Advice
0 votes
0 replies
22 views

I'm doing a model for scheduling personnel through VRP formulation and I would like to know how can I integrate precedence binary matrix, using the CSR to accelerate the data processing. My precedence ...
user21559's user avatar
0 votes
0 answers
44 views

I have a step in my algorithm where I have to perform a standard Mixe Integer Program relaxation, it goes as follows: Solve the MIP Relax the binaries of MIP to NonNegativeReals Fix the variables to ...
solidahmad's user avatar
3 votes
1 answer
78 views

I am trying to minimize the L2 norm of the peak flows in a drainage system. I want to use gekko since it can handle integer-binary programming. In my program, my objective is to minimize the peak ...
Gwhyneth Eliscupidez's user avatar
3 votes
0 answers
57 views

I was testing some options with Gekko for an optimization with MINLP , but I still couldn't figure out how the option COLDSTART = 2 work. Using the variable values from a prior solution as initial ...
Hamiduddin Hamdan's user avatar
1 vote
1 answer
139 views

I'm trying to solve a load balancing problem with a constraint solver. I have a list of partitions, each one is associated with a load, and I want to assign these partitions to a fixed number of ...
darkjh's user avatar
  • 2,881
0 votes
0 answers
36 views

I am working on a special network flow problem, trying to implement in GAMS, something like a (N∗N) grid, and I am having difficulties to define some of its sets. The problem is stated as follows: ...
A.Omidi's user avatar
  • 193
5 votes
2 answers
267 views

In a graph/chain there are 3 different states: ST, GRC_i and GRC_j. The following edges between the states exists: EDGES = [ # source, target, name ('ST', 'GRC_i', 'TDL_i'), ('ST', '...
HJA24's user avatar
  • 406
0 votes
0 answers
54 views

I'm working on a Mixed-Integer Nonlinear Programming (MINLP) optimization problem using Pyomo in Python, but I'm having trouble installing and configuring solvers. I've tried both installing solvers ...
Salwa's user avatar
  • 1
0 votes
1 answer
350 views

I'm trying to install mip (Python-MIP package for mathematical optimization). But, I'm facing a issue with cffi package. Bellow, the result of command pip install mip : pip install mip Collecting mip ...
Bruno Santos's user avatar
1 vote
2 answers
423 views

I am interested in leveraging more number of physical cores when solving a MIP problem with mathopt. Parallelization was easy with CP-SAT by setting the number of search workers solver.parameters....
Bhartendu Awasthi's user avatar
2 votes
1 answer
58 views

I am working on a optimisation problem and I am using Gekko to solve it. Consider the scenario where there are 2 machines and 5 users and each machines has 2 resources to distribute to users. The user ...
Alok's user avatar
  • 1,516
3 votes
0 answers
102 views

I've successfully built my model and it runs and plots a Pareto front. However, I don't know how to store X* (the optimum value of ALL the decision variables that resulted in the optimum F). My model ...
shayan firouzian's user avatar
-1 votes
1 answer
93 views

I have an optimization model to fulfill the water requirements of a city's distribution network. The model includes water sources from rainfall collection, river extraction, reservoir storage, and ...
snek's user avatar
  • 1
0 votes
2 answers
222 views

I have a problem where I need to take the minimum of decision variables, but want to exclude variables which take a value of zero. For e.g. if variable values are : 0,0,2,5,7 then I want the minimum ...
bobby's user avatar
  • 113
0 votes
0 answers
96 views

I am working on Production planning optimization where I have three stages of planning Production plan Packaging plan Dispatch plan for each stage I have its capacity and lead time it takes for each ...
Prashant Pandya's user avatar
1 vote
2 answers
384 views

I am using ortools, CP-SAT solver, and I am struggling to write a constraint that will allow for a solution which can have multiple zero's but the remaining decision variable values have to be unique. ...
bobby's user avatar
  • 113
3 votes
2 answers
1k views

I am new to Google OR-Tools and trying to start by running a basic example from OR-Tools example library found here https://github.com/google/or-tools/blob/stable/ortools/sat/samples/cp_sat_example.py....
user25330421's user avatar
0 votes
1 answer
47 views

I have coded the multy commodity flow problem using MIP and CPLEX solver but for any example I provide it leads to 0 as optimal value. I believe the problem lies within either in objective function or ...
mohammad khamechian's user avatar
2 votes
1 answer
220 views

I am solving a MIP problem in Python. The solving process with branch and bound proceeds very fast at the beginning, but when the optimality gap reaches 0.08% the opposite happens. I mean, from 0.08% ...
Vida's user avatar
  • 35
0 votes
0 answers
116 views

I want a binary variable, $inv_year$, to indicate the investment year, i.e., the year where the investment variable, $I$, turns greater than zero for the first time. Both variables ($inv_year$ and $I$)...
Julia Schepp's user avatar
0 votes
1 answer
57 views

i want to create multiple optimal solutions from my gurobi optimization MIP model but not using the PoolMode. instead, i have a model that creates the optimal NBA DFS lineup. one of my constraints ...
sports_analytics_guy's user avatar
2 votes
1 answer
78 views

I'm trying to simultaneously enforce sequential duration and spacing constraints to vector solution output in Gekko. Normally, this would be fairly straightforward using window logic, but my time ...
datadude558's user avatar
3 votes
1 answer
80 views

I'm trying to constrain the vector output of "simu_total_volume" below by requiring that solution output elements (x7=1) be spaced apart by s records (weeks) while also controlling for the ...
datadude558's user avatar
2 votes
1 answer
44 views

I'm trying to implement conditional logic in Gekko using "if3" but am unsure how to successfully layer 2 conditions at different levels of granularity. "x1" is vector of binary ...
datadude558's user avatar
2 votes
1 answer
67 views

I'm trying to use Gekko to optimize across time (a vector) to generate schedules based on several constraints, namely price and the number of times an event can occur (say we limit it to 5 per x7 ...
datadude558's user avatar

1
2 3 4 5
11