Pyomo can't locate GLPK solver

I'm trying to use the GLPK solver with Pyomo. I have a working model that's been tested, but keep getting an error saying GLPK can't be found. WARNING: Could not locate the 'glpsol' executable,...

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...

How to find which constraint is violated from pyomo's ipopt interface?

I am running an optimization problem using pyomo's ipopt solver. My problem is sort of complicated, and it is declared infeasible by IPOPT. I will not post the entire problem unless needed. ...

Installing Couenne solver on Python's Pymo extension

How do I install the Pyomo's "Cuenne" optimizer extension? I have downloaded the binaries from: https://www.coin-or.org/download/binary/Couenne/ Here is an official guide from Pyomo's site on how...

Solver (cbc) returned non-zero return code (3)

I am using pyomo and CBC solver to solve a series of binary inetger linear programming problems and it works most of the time but I have come across this error Cbc0010I After 17900 nodes, 8056 on...

Pyomo parallel processing to solve an instance

I'm following the steps here in order to use all my computing power (10-core Intel i9 CPU) and solve a one-instance abstract Pyomo model. However, it seems that the solver is just using one CPU...

How to use (/install) the pardiso linear solver in ipopt using the pyomo modelling framework?

I am developing an optimization model using pyomo with python (python 3 - i manage packages with anaconda on windows). I need to use a non-linear solver, ipopt. It seems that the default linear...

pyomo + reticulate error 6 the handle is invalid

I'm trying to run a pyomo optimization and I get the error message [Error 6] The handle is invalid. Not sure how to interpret it, looking around it seems to have something to do with privileges...

mixed integer quadratic programming python in pyomo

Can i get a complete example program in pyomo for optimizing quadratic objective functions with constraints with cplex solver? or an example for mixed integer quadratic programming python in pyomo

How to read cplex virtual machine configuration file through Pyomo in windows?

I am setting up cplex distributed computing over two machines (windows system) in Pyomo. How can I do that in a python script? I have already set up the cplex distributed computing connection...

How to specify GAMS solver-specific options through Pyomo?

I am trying to solve an MINLP problem with the ANTIGONE solver (licensed in GAMS), and I am having difficulties to change the advanced settings of the solver. First, I call the solver from Pyomo...

how to get best feasible solution with glpk (linear programming) when max time limit is reached - python pyomo

I am working on a linear programming problem, where my decision variables are non-negative-reals and there are other binary decision variables which I construct to help solve my problem (using...

Pyomo CBC solver error: Solver (cbc) returned non-zero return code (3221225781); Solver (cbc) did not exit normally

I'm working on an optimization problem on PyCharm using the CBC solver and I keep having this error: ERROR: Solver (cbc) returned non-zero return code...

Setting MIP and NLP solvers path using Pyomo MindtPySolver

I am using Pyomo 5.6.8 and trying to resolve a non linear optimization problem using MindtPySolver. I have no issue on my local machine, simply calling the solve method with these...

How you enable CBC to return best solution when timelimit? (Pyomo)

I am trying to use CBC(v2.10.3) on Pyomo to solve for a integer linear problem. When executing the solver, I am currently setting a timelimit of 600s. opt = SolverFactory...

Pyomo constraint > 100000 OR 0

All, I am working on some code where there is a requirement to buy/sell a minimum of 100,000 packets. If not possible then this should be zeroed. I have tried a number of things for things for...

How to define "executable" solver path with pyomo multistart

I am having a non-linear minimization problem apparently with non-convexity. I use the Pyomo framework for an energy system operation optimization model, where a once configured optimization model...

How to use 'cbc' in pyomo's SolverFactory in Windows 10

I have been trying to use 'cbc' solver in pyomo as following: import pyomo.environ as pe solver = pe.SolverFactory('cbc') result = solver.solve(m) Currently, I have been relying on the embedded...

Pyomo scip solver Error FileNotFoundError

I am trying to use scip solver in pyomo on ubuntu 20.04 but get a strange error message when invoking the solver: FileNotFoundError: [Errno 2] No such file or directory:...

Keeping variable names when exporting Pyomo into a .mps file

So, i'm currently working with a pyomo model with multiple instances that are being solved in parallel. Issue is, solving them takes pyomo quite a long time (like 2 to 3 secs, even though the...

ApplicationError: No executable found for solver 'ipopt' in Pyomo

I am learning Pyomo and trying to use ipopt to solve an example question. but initially, I have installed package, then it always shows that there is not a ipopt found. After that, I reinstalled...

Optaplanner and Pyomo

I'm currently using pyomo environment to solve optimization problems. I have used different solvers (Ipopt, glpk, cbc, couenne) in order to solve my problems. Actually I need to solve a non-linear...

Solve maxmin problems using Pyomo Bilevel

I would like to solve the following simple maxmin problem using Pyomo (bilevel module) I have solved the problem using the KKT's conditions and the result is (as expected) x=y=10 But I would like...

open-pit mine Supply Chain Optimization capstone using OOPs and Pyomo

Struggling with a SC optimization capstone which uses OOPs concepts and Pyomo. It's an open-pit mine with 10Diggers, 3Crushers & 57Trucks. Need to create 2 Snapshots & then using OOPs create empty...

Parameter Estimation with mle in pyomo

I want to estimate the parameters of an RL model from a behavioral dataset with pyomo. #dummy data dis_data = pd.DataFrame([0,1,0,0,0,1], columns=['reward']) dis_data['Expt']=str(1) dis_data =...

Implementation of MINLP solver "apopt" in Pyomo

I have a mixed integer non linear problem in Pyomo with an objective function and several constraints consisting of non-linear terms and binary variables. The popular solver "ipopt" finds a...

How to extract Indexed Variable information in pyomo Model and build Pandas Dataframe

I am attempting to solve a MIP using Pyomo with several Indexed Variables of different sizes. What I would like to do is export the results of the variables to a dataframe so that I can further...

Using NEOS as a Pyomo solver

I have recently started in doing some OR, and have been trying to use Pyomo and NEOS to do some optimation problems. I have been following along with one of the UT Austin Pyomo lectures, and when...

Using piecewise function in objective function in Pyomo

I am trying to use a piecewise linear function from Pyomo in my objective function. This piecewise linear function is actually interpolating an array of values called macc, having 401 values...

Placement of spheres in a specified medium with a specified condition

The main objective of this work is to fill a big box by specified number of spheres with specified radii by satisfying the following conditions: each sphere be in touch (not any overlaps just...