Skip to main content

All Questions

0 votes
0 answers
230 views

How to stop glpk solver after presolve stage and use the result after the presolve stage in Pyomo

I want to stop the optimization using glpk solver in Pyomo after very first iterations because after the solution is not getting better and use this value as the result of my model. How is it possible ...
Roman Lents's user avatar
1 vote
0 answers
66 views

Can we solve fuzzy linear programming using GLPK python?

I am exploring fuzzy linear programming for my current project. I am already using GLPK API using python for solving linear programming problems. I want to know if I can solve fuzzy LPP using GLPK
Monish Kumar's user avatar
1 vote
2 answers
581 views

Pyomo Objective takes too long to construct

I have a Pyomo objective function that consists of 2 nested loops (total 1,000,000 loops) and it takes about 40 secs for Pyomo to construct it on my computer. m.obj = Objective( expr=sum( ...
gameveloster's user avatar
  • 1,583
1 vote
0 answers
1k views

can't execute Pulp with GLPK solver

I'm trying tot solve a linear model with python for a class I take. but, when I try to use the GLPK solver I get an error: """ pulp.apis.core.PulpSolverError: PuLP: cannot execute ...
noy medina's user avatar
1 vote
1 answer
5k views

PulpSolverError Pulp: Error while executing

I am trying to solve a Linear programming problem by using the PuLP library. After defining the problem correctly, when I run the solver (CBC) I get a very strange error. PulpSolverError: Pulp: Error ...
Key's user avatar
  • 45
1 vote
1 answer
534 views

Getting top 10 sub-optimal solutions computed by GLPK solver for LP in python

I am trying to use GLPK for solving an LP problem. My problem is the routing problem in a computer network. Given network topology and each link capacity and the traffic demand matrix for each source-...
Shahrooz Pooryousef's user avatar
-1 votes
1 answer
193 views

CVXOPT solar + battery w/ price charge/discharge optimization glpk

I have the following df. battery can only charge from solar, and prefer to pick up teh curtailed/free solar as that sets the new limit on how much can leave the system. I'm having a diffuclt time ...
Marina Goldylocks's user avatar
0 votes
0 answers
426 views

Error , Infeasible No value for uninitialized NumericValue object

I'm trying to optmize a problem of clients/facility allocation and I'm using pyomo to do so. I have the following problem that appear and cannot solve it even if I initialize all the values of Model.z ...
Adam 's user avatar
0 votes
1 answer
514 views

GLPK optimization problem with continuous variables always return zero

In an optimization problem with continuous variables, I used GLPK for python (pymprog module). The result is not what I'd expect. begin('optimzer') X = var('X', 5) k = par('k', [1, 1, 1, 1, 1]) 0 &...
sthor69's user avatar
  • 668
0 votes
0 answers
546 views

PuLP - GLPK gives dfferent result than the default solver

I'm working in a MIP but I have this problem and I don't know why is happening. I already have my model complete. When I solve it with GLPK it gives mi all the variable values equal to 0. When I use ...
Arturo Bravo's user avatar
0 votes
0 answers
398 views

Fastest Python GLPK linear program solver

Does anyone with a lot of experience know the fastest package for solving linear programs in Python? Or can point me in the right direction? I have built some code that takes in hourly records for ...
hrschbck's user avatar
  • 117
1 vote
1 answer
906 views

Pyomo (GLPK, Windows) shows me weird results within 'results.yml'

Working with Pyomo 5.1.1 (CPython 2.7.10 on Windows 7), I'm trying to execute the easiest Pyomo example, the concrete model shown at https://software.sandia.gov/downloads/pub/pyomo/PyomoOnlineDocs....
Hookstark's user avatar
  • 1,159
1 vote
0 answers
938 views

CVXOPT + GLPK - Extract lagrange multiplier from LP solution

I'm trying to solve a generic optimization problem with both inequality and equality constraints using CVXOPT's solvers.lp and GLPK. Everything works fine but i'm not able to extract the Lagrangian ...
fumagam's user avatar
  • 50
10 votes
5 answers
27k views

PyInstaller .exe file does nothing

After 3 days, I can't get a python program packaged into a .exe file. I've tried py2exe (which continuously missed modules), and PyInstaller. Here's the complicated part. My program uses a lot of ...
Dylan Cross's user avatar
1 vote
1 answer
3k views

Mixed Integer Programming - Warehouse Location (Python + GLPK)

I am relatively new in optimizationa nd I am trying to optimize a problem (from a pas class in Coursera, 2 years ago) about Warehouse Location. The problem is, its been more than 6 hours and its still ...
excalibur1491's user avatar

15 30 50 per page