I am a full-time consultant and provide services related to the design, implementation and deployment of mathematical programming, optimization and data-science applications. I also teach courses and workshops. Usually I cannot blog about projects I am doing, but there are many technical notes I'd like to share. Not in the least so I have an easy way to search and find them again myself. You can reach me at erwin@amsterdamoptimization.com.
Monday, March 9, 2026
Experience with NLP solvers on a simple economic growth model
Sunday, June 30, 2024
Inflation is a difficult concept for many
Last friday, 6/28, new PCE (Personal Consumption Expenditures Price Index) data were released. The year-on-year inflation numbers decreased from 2.7% last month to 2.6% [1]:
Let's see how the popular press reports this [2]:
Tuesday, August 31, 2021
matrix operations via GAMS Embedded Python: multi-regional Input-Output tables
![]() |
| Wassily Leontief in front of an IO table, credit:NYU |
Inverting a dense matrix
GAMS allows running pieces of Python code as part of a GAMS model. Unfortunately, the interface is rather low-level and inefficient. Usually "low-level" is associated with high-performance, but in the Python world, this is not the case. Here is an example.
Tuesday, July 20, 2021
Spatial Equilibrium
Just a quick experiment with a small price-endogenous spatial equilibrium model.
In this problem, we consider commodities (goods) produced and consumed in different regions. We can trade between regions.
This price-endogenous spatial model will find both equilibrium prices, supplies, demand quantities, and trade patterns. Our model will have a connection with the transportation model. The difference is that we formulate the model as a system of complementarity constraints (no objective), with the duals explicitly in the model as variables. Or, in other words, we solve the KKT conditions.
I use a small data set from [3], and see if we can reproduce things.
