Blog: Julia/JuMP vs Python/Pyomo
In this article we develop an optimization model in the Julia programming language, using the JuMP mathematical optimization package.
Our objectives are to:
- Write a linear programming model using Julia/JuMP.
- Compare the model with an equivalent model written using Python/Pyomo.
https://www.solvermax.com/blog/julia-jump-vs-python-pyomo
#Python #Pyomo #JuliaLang #JuMP #orms
#orms #jump #julialang #pyomo #python
Blog article: Refactor Python models into modules
In this article we explore two aspects of working with multiple variations of an optimization model:
- Modularization. We refactor an existing model into modules, consisting of functions located in separate files.
- Adding models. We extend the existing model by adding variations that make efficient use of the modular structure.
Along the way, we look at shallow vs deep copying in Python. This is a topic that often causes subtle bugs, so it is important to understand when working with variations of a model.
https://www.solvermax.com/blog/refactor-python-models-into-modules
#Python #Pyomo #refactoring #orms
#orms #refactoring #pyomo #python
Blog article: Schedule staff with enumerated shifts, Pyomo
We implement a staff scheduling model in Python and solve it using the CBC solver via Pyomo. The central feature of the model is enumerating all possible shifts and then deciding how many staff to allocate to each shift so that we meet the various constraints at least cost.
This article replicates the previous Excel/OpenSolver model in Python/Pyomo, enabling us to compare the two tools.
https://www.solvermax.com/blog/schedule-staff-with-enumerated-shifts-pyomo
#opensolver #pyomo #python #optimization #excel #orms
We've added "Data-driven mathematical optimization in Python" to our list of free, online resources.
It is an online repository of companion notebooks designed to help people learn about mathematical optimization and model building. It isn't exactly a textbook, but it is a great resource. There are lots of examples, built using the Pyomo library.
If you know of any other free optimization resources, then please let us know.
https://www.solvermax.com/resources/links/textbooks-about-optimization/data-driven-mathematical-optimization-in-python
#orms #optimization #Python #Pyomo
#pyomo #python #optimization #orms
Blog article: Schedule staff with enumerated shifts, OpenSolver
We implement a staff scheduling model in Excel and solve it using the CBC solver via OpenSolver. The central feature of the model is enumerating all possible shifts and then deciding how many staff to allocate to each shift so that we meet the various constraints at least cost.
The next article will implement the same model in Python and solve it using the CBC solver via Pyomo, enabling us to compare the two tools.
https://www.solvermax.com/blog/schedule-staff-with-enumerated-shifts-opensolver
#opensolver #pyomo #python #optimization #excel #orms
Production mix - Conclusions
We built a linear program in six Pythons libraries: #Pyomo, #PuLP, #ORTools, #Gekko, #CVXPY, and #SciPy.
This blog article summarizes our conclusions from using each of the libraries. We also indicate which library we prefer for various types of optimization modelling.
https://www.solvermax.com/blog/production-mix-conclusions
#orms #Python #DataScience #optimization
#optimization #datascience #python #orms #scipy #cvxpy #gekko #ortools #pulp #pyomo
Production mix - Model 11, SciPy
We build Model 11 of the Python "Production mix" series.
Our objective is to compare a model built using SciPy with the same model built using Pyomo.
#orms #Python #DataScience #optimization #Pyomo #SciPy
https://www.solvermax.com/blog/production-mix-model-11-scipy
#scipy #pyomo #optimization #datascience #python #orms
Production mix - Model 10, CVXPY
We build Model 10 of the Python "Production mix" series.
Our objective is to compare a model built using CVXPY with the same model built using Pyomo.
#orms #Python #DataScience #optimization #Pyomo #CVXPY
#cvxpy #pyomo #optimization #datascience #python #orms
Help wanted: MCP model in Pyomo
I have a Mixed Complementarity Problem (MCP) that represents a market under perfect competition. The model is written in GAMS and works as expected. But when translating it to Python, using Pyomo, the model is infeasible. Both models use the Path solver.
Can anyone see where I've gone wrong?
Details: https://or.stackexchange.com/questions/9511/convert-mcp-model-from-gams-to-pyomo
#orms #Python #GAMS #Pyomo
Production mix - Model 9, Gekko
We build Model 9 of the Python "Production mix" series.
Our objective is to compare a model built using Gekko with the same model built using Pyomo.
#orms #Python #DataScience #optimization #Pyomo #Gekko
https://www.solvermax.com/blog/production-mix-model-9-gekko
#gekko #pyomo #optimization #datascience #python #orms