Groups
Groups
Sign in
Groups
Groups
Pyomo Forum
Conversations
About
Send feedback
Help
Pyomo Forum
1–30 of 2468
This is a forum for users to get help with Pyomo.
We encourage users to consider using StackOverflow for questions with concrete "answers". StackOverflow allows users/developers to document different answers, and to vote on the relevance of answers.
[Click Here to Ask a Question on StackOverflow
]
Mark all as read
Report group
0 selected
Armaghan Bhr
, …
Ahmad Heidari
11
2/26/25
how can I put variables into if statement using python, pyomo and a linear solver(Gurobi)?
Hello Armaghan, I hope you are doing well. Suppose X, Y, and Z are your variables; each of which
unread,
how can I put variables into if statement using python, pyomo and a linear solver(Gurobi)?
Hello Armaghan, I hope you are doing well. Suppose X, Y, and Z are your variables; each of which
2/26/25
Hayford Adjavor
, …
David Woodruff
5
6/17/23
DataPortal() Issue.
For one thing, the excel file test.xlsx does not seem to contain any named ranges. Based on the error
unread,
DataPortal() Issue.
For one thing, the excel file test.xlsx does not seem to contain any named ranges. Based on the error
6/17/23
Armaghan Bhr
8/2/20
two-indexed variable in Pyomo, using for declaring the variable in time and section/block
Hi there! I'm trying to model a heat exchanger with n segments in pyomo but I get weird results.
unread,
two-indexed variable in Pyomo, using for declaring the variable in time and section/block
Hi there! I'm trying to model a heat exchanger with n segments in pyomo but I get weird results.
8/2/20
View more pinned conversations
Pa Hari Krishna Achuthan
9/16/25
Model Reconstruction after Modification to Model Objects
Greetings All, Im trying to model a two stage iterative model where i am conditionally adding
unread,
Model Reconstruction after Modification to Model Objects
Greetings All, Im trying to model a two stage iterative model where i am conditionally adding
9/16/25
Ja Eddouibi
,
Ahmad Heidari
2
8/27/25
Conversion of Abstract to Concrete
Hi Ja, The short answer is no; however, the long answer is as follows. You can use DataPortal(), save
unread,
Conversion of Abstract to Concrete
Hi Ja, The short answer is no; however, the long answer is as follows. You can use DataPortal(), save
8/27/25
Vaaras
,
Ahmad Heidari
4
8/14/25
Loading indexed sets from tabular data
Hi Santeri, Yes, you are right. You can have the code below in Pyomo: -------------------------------
unread,
Loading indexed sets from tabular data
Hi Santeri, Yes, you are right. You can have the code below in Pyomo: -------------------------------
8/14/25
mitsuru
4/26/25
Performance of pyomo, and benchmark
Dear experts I am satisfied with use of Pyomo. BTW, when we would like to increase variables as
unread,
Performance of pyomo, and benchmark
Dear experts I am satisfied with use of Pyomo. BTW, when we would like to increase variables as
4/26/25
CHITHRAPONNU R 20PHD1199
, …
Ahmad Heidari
6
4/23/25
Pyomo - MINLP
Thank you @venu and @heidari. Conversion of my model nonlinear to linear is little complicated. I
unread,
Pyomo - MINLP
Thank you @venu and @heidari. Conversion of my model nonlinear to linear is little complicated. I
4/23/25
mitsuru
,
David Woodruff
8
4/22/25
Stochastic programming with continuous probability density function
Dear Dr. D. Woodruff I read the first paper about mpi-sppy, and then I understand you are the member
unread,
Stochastic programming with continuous probability density function
Dear Dr. D. Woodruff I read the first paper about mpi-sppy, and then I understand you are the member
4/22/25
Bobby Heyer
, …
Andres Ramos
4
4/10/25
[HELP] HiGHS via Pyomo (appsi_highs)
Hi All Thank you all for your help I've downloaded latest pyomo (6.9.2.dev0) from github and
unread,
[HELP] HiGHS via Pyomo (appsi_highs)
Hi All Thank you all for your help I've downloaded latest pyomo (6.9.2.dev0) from github and
4/10/25
Jan Wiegner
4/10/25
pyomo.gpd | bigm vs. hull transformations
Dear pyomo community, we developed a large energy system model using pyomo and the pyomo.gdp
unread,
pyomo.gpd | bigm vs. hull transformations
Dear pyomo community, we developed a large energy system model using pyomo and the pyomo.gdp
4/10/25
Bochen Stone
,
Ahmad Heidari
4
4/6/25
Second-order cone constraints in pyomo with mosek
Bochen, Great news. I am happy you could solve the issue with tuning the solver's parameters. On
unread,
Second-order cone constraints in pyomo with mosek
Bochen, Great news. I am happy you could solve the issue with tuning the solver's parameters. On
4/6/25
會黎易
4/6/25
Secondary development based on Pyomo
Can I create a GUI based on Pyomo, add some algorithms, and build in some open-source solvers (such
unread,
Secondary development based on Pyomo
Can I create a GUI based on Pyomo, add some algorithms, and build in some open-source solvers (such
4/6/25
jinyu yue
, …
Andres Ramos
8
3/31/25
promblems in pyomo
thanks! The problem can be solved, but when the gap is close to 17%, the bound and gap change at a
unread,
promblems in pyomo
thanks! The problem can be solved, but when the gap is close to 17%, the bound and gap change at a
3/31/25
mikkel.a...@gmail.com
, …
Arnaud Baguet
3
3/22/25
appsi_highs fails with quadratic objective
Hi Mikkel, I have raised a PR that will solve this issue. Let me know if you have any questions: add
unread,
appsi_highs fails with quadratic objective
Hi Mikkel, I have raised a PR that will solve this issue. Let me know if you have any questions: add
3/22/25
Tim Prokopenko
,
Ahmad Heidari
2
3/17/25
Usage of user specific matrix A in LP as an input for GLPK solve
Hello Tim, I hope you are doing well. What do you mean by matrix? If you are going to import some
unread,
Usage of user specific matrix A in LP as an input for GLPK solve
Hello Tim, I hope you are doing well. What do you mean by matrix? If you are going to import some
3/17/25
Érico Porto
,
Ahmad Heidari
2
3/17/25
How to contribute new solver
Hello Erico, I hope you are doing well. If I got your message correct, you will define your new
unread,
How to contribute new solver
Hello Erico, I hope you are doing well. If I got your message correct, you will define your new
3/17/25
Jaime Vera
,
Ahmad Heidari
2
3/17/25
Nonlinear Bilevel Problem
Hello Jaime, I hope you are doing well. Unfortunately, the bi-level extension of Pyomo is now
unread,
Nonlinear Bilevel Problem
Hello Jaime, I hope you are doing well. Unfortunately, the bi-level extension of Pyomo is now
3/17/25
rj lu
, …
Ahmad Heidari
3
3/12/25
pyomo solve bi-level model mistakes
Hello, For the Bi-Level Mixed-Integer Programming (Bi_MIP) problem, and its implementation in Pyomo,
unread,
pyomo solve bi-level model mistakes
Hello, For the Bi-Level Mixed-Integer Programming (Bi_MIP) problem, and its implementation in Pyomo,
3/12/25
giuseppes...@gmail.com
,
Ahmad Heidari
2
3/12/25
Problem with the dual variables fixing the value of a variable
Hello Giuseppes, I hope you are doing well. For Benders Decomposition and its implemented version in
unread,
Problem with the dual variables fixing the value of a variable
Hello Giuseppes, I hope you are doing well. For Benders Decomposition and its implemented version in
3/12/25
Ahmad Heidari
3/12/25
Re: Ideas to linearize objective function
Hello Alessandra, I hope you are doing well. Based on your function, you have three terms: model.
unread,
Re: Ideas to linearize objective function
Hello Alessandra, I hope you are doing well. Based on your function, you have three terms: model.
3/12/25
MohammadSaeed Omidi
,
Ahmad Heidari
2
3/12/25
cant save logfile in pyomo
Hello Mohammad, I hope you are doing well. Is the GAMS a typo? Why do you want GAMS to save the log
unread,
cant save logfile in pyomo
Hello Mohammad, I hope you are doing well. Is the GAMS a typo? Why do you want GAMS to save the log
3/12/25
r.ilma...@gmail.com
,
Ahmad Heidari
2
3/12/25
creating constraint with in between two same variables
Hello, Your method seems rational! Could you please share the error and part of the code,
unread,
creating constraint with in between two same variables
Hello, Your method seems rational! Could you please share the error and part of the code,
3/12/25
Audrey Demafo
,
Ahmad Heidari
2
3/12/25
PYOMO ODE Solve with Manual Discretization
Hello Audrey, I hope you are doing well. Regarding the nature of your problem, you could decrease the
unread,
PYOMO ODE Solve with Manual Discretization
Hello Audrey, I hope you are doing well. Regarding the nature of your problem, you could decrease the
3/12/25
To To
,
Ahmad Heidari
2
3/12/25
How to install IPOPT-3.14.16
Hello To To, I hope you are doing well. Where do you want to install IPOPT? --- If you are going to
unread,
How to install IPOPT-3.14.16
Hello To To, I hope you are doing well. Where do you want to install IPOPT? --- If you are going to
3/12/25
Andreas Wiese
,
Ahmad Heidari
2
3/12/25
Windows, use HiGHS without installing MS C++ Build Tools
Hello Andreas, I hope you are doing well. Based on the new version of ChatGPT 4.5, you can do the
unread,
Windows, use HiGHS without installing MS C++ Build Tools
Hello Andreas, I hope you are doing well. Based on the new version of ChatGPT 4.5, you can do the
3/12/25
vincenzo di vito francesco
,
Ahmad Heidari
2
3/12/25
Gaussian processes in pyomo
Hello Vincenzo, I hope you are doing well. Could you provide your code or a part of it so it would be
unread,
Gaussian processes in pyomo
Hello Vincenzo, I hope you are doing well. Could you provide your code or a part of it so it would be
3/12/25
luis gustavo cordero bautista
,
Ahmad Heidari
2
3/12/25
Minimize Power Loss, Electrical System
Hello Luis, I hope you are doing well. You have two options: 1- You can define the lines based on the
unread,
Minimize Power Loss, Electrical System
Hello Luis, I hope you are doing well. You have two options: 1- You can define the lines based on the
3/12/25
Amin Moghimy Fam
,
Ahmad Heidari
2
3/12/25
CPLEX callbacks
Hello Amin, I hope you are doing well. Unfortunately, when the solver does not achieve a feasible
unread,
CPLEX callbacks
Hello Amin, I hope you are doing well. Unfortunately, when the solver does not achieve a feasible
3/12/25
Muhammad Hamza ali
11/15/24
Configuring ma57 (HSL) with pyomo and Ipopt (Windows)
"I recently obtained the academic version of solvers from the HSL website and need to configure
unread,
Configuring ma57 (HSL) with pyomo and Ipopt (Windows)
"I recently obtained the academic version of solvers from the HSL website and need to configure
11/15/24
Magma man
10/17/24
CoIn-OR optimization suite + Python docker image available
Hello! https://github.com/skannan-maf/optimization-suite-docker I made a dockerfile based on Python:
unread,
CoIn-OR optimization suite + Python docker image available
Hello! https://github.com/skannan-maf/optimization-suite-docker I made a dockerfile based on Python:
10/17/24
Daniel Haught
10/17/24
Solving PDE in Pyomo
Hey, I am trying to set up a chromatography model in Pyomo. I am first trying to do that by just
unread,
Solving PDE in Pyomo
Hey, I am trying to set up a chromatography model in Pyomo. I am first trying to do that by just
10/17/24
François LESAGE
10/17/24
DAE integration with events (rootfinding) within Pyomo
Hello Everybody, I have developed a model including a DAE system (about 20 equations) and relying
unread,
DAE integration with events (rootfinding) within Pyomo
Hello Everybody, I have developed a model including a DAE system (about 20 equations) and relying
10/17/24