Solver Max · @SolverMax
99 followers · 132 posts · Server mathstodon.xyz

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.

solvermax.com/blog/julia-jump-

#orms #jump #julialang #pyomo #python

Last updated 1 year ago

Solver Max · @SolverMax
99 followers · 132 posts · Server mathstodon.xyz

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.

solvermax.com/blog/refactor-py

#orms #refactoring #pyomo #python

Last updated 1 year ago

Solver Max · @SolverMax
93 followers · 104 posts · Server mathstodon.xyz

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.

solvermax.com/blog/schedule-st

#opensolver #pyomo #python #optimization #excel #orms

Last updated 2 years ago

Solver Max · @SolverMax
93 followers · 97 posts · Server mathstodon.xyz

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.

solvermax.com/resources/links/

#pyomo #python #optimization #orms

Last updated 2 years ago

Solver Max · @SolverMax
93 followers · 95 posts · Server mathstodon.xyz

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.

solvermax.com/blog/schedule-st

#opensolver #pyomo #python #optimization #excel #orms

Last updated 2 years ago

Solver Max · @SolverMax
92 followers · 86 posts · Server mathstodon.xyz

Production mix - Conclusions
We built a linear program in six Pythons libraries: , , , , , and .
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.
solvermax.com/blog/production-

#optimization #datascience #python #orms #scipy #cvxpy #gekko #ortools #pulp #pyomo

Last updated 2 years ago

Solver Max · @SolverMax
90 followers · 81 posts · Server mathstodon.xyz

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.

solvermax.com/blog/production-

#scipy #pyomo #optimization #datascience #python #orms

Last updated 2 years ago

Solver Max · @SolverMax
50 followers · 20 posts · Server mathstodon.xyz

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.

#cvxpy #pyomo #optimization #datascience #python #orms

Last updated 2 years ago

Solver Max · @SolverMax
46 followers · 14 posts · Server mathstodon.xyz

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: or.stackexchange.com/questions

#pyomo #gams #python #orms

Last updated 2 years ago

Solver Max · @SolverMax
18 followers · 3 posts · Server mathstodon.xyz

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.

solvermax.com/blog/production-

#gekko #pyomo #optimization #datascience #python #orms

Last updated 2 years ago