|
Hello Reader! Every Superhero Has an Origin StoryFor GAMSPy’s machine learning superpowers, that story begins with a package called OMLT. OMLT is short for Optimization and Machine Learning Toolkit. It’s a package that extends Pyomo to integrate machine learning models directly into optimization problems. Because OMLT supports ONNX interoperability, you can take a model trained in TensorFlow, Keras, or PyTorch and embed it into a Pyomo optimization model. It also happens to be the package that inspired the GAMSPy developers to integrate ML support natively into GAMSPy. At the same time, OMLT depends on the Pyomo ecosystem. That meant it carried some of Pyomo’s baggage—most notably, the lack of advanced sparsity exploitation. By making ML integration a native feature and combining it with GAMSPy’s solver-level strengths, it eliminated those fragilities. In a way, OMLT wrote the first chapter, but GAMSPy delivers the finished story. When the Specific Application Feels UnclearOn paper, combining ML and optimization sounds amazing. Who wouldn’t want predictive power and optimal decisions in the same place? But if you’ve ever actually tried, you’ll know the feeling: the idea is inspiring, but the specifics of “how” and "for what" quickly become blurry. The Bridge BuildersThat is why OMLT wasn’t born in a single eureka moment. On one side were optimization researchers with their equations — structured, interpretable, rigorous. Both were powerful, but they didn’t talk to each other. So the group of authors of OMLT started experimenting. Step by step, those “what if” discussions turned into code. That code became OMLT: a bridge that let ML models live inside Pyomo optimization problems. And it inspired a new generation of tools — among them some features of GAMSPy. From Idea to ImpactSo what did OMLT actually make possible? Here are a few striking examples:
And on the more methodical side: OMLT made physics-informed neural networks far easier. Instead of forcing physical laws into the structure of a neural network, you simply state them as constraints in the optimization model. They’re enforced exactly, without approximation. Where Would You Start?OMLT was the prequel for GAMSPy. If you wrote the prequel for ML + optimization in your own work, what would it look like?
P.S.: If you’re curious how ML + optimization could be combined in your field, that’s exactly the kind of development work I do for clients. Let's have a chat about it! |
I write about my everyday life as optimization expert, where I translate business requirements to mathematical formulars, then to software -- and all the way back again.
Hello Reader! Humans don’t struggle with optimization because it’s too logical.They struggle because decision-making was never purely logical to begin with. Why Optimization Feels Unnatural to Humans There is a quiet discomfort that shows up again and again when decisions are handed over to computers. Not always loudly.Not always explicitly.But it’s there. Even in technically sophisticated teams, and even among people who fully understand the mathematics, there is often a moment of hesitation...
Hello Reader! There’s a special kind of excitement that hits when a dream-fit client reaches out at the worst possible moment.That’s exactly what happened last year around this time. My calendar was overflowing.Commitments everywhere.Zero space for anything new. And then their message landed in my inbox. Clear. Focused. High-stakes.Exactly the kind of problem Bluebird Optimization exists to solve. So I made space where there was none. Why does the fit of a client change the entire trajectory...
Hello Reader! Optimization is one of the most powerful technologies of our time — and yet, it rarely makes headlines. I'm currently returning from the Gurobi Summit 2025 in Vienna. Thus, this newsletter will be a little different: let’s start with three quotes worth highlighting from the event: My personal Top-3 of Quotes “Two years from now, spam will be solved.” – Bill Gates, 2004 This quote was shown at the Summit, alongside many others from world-class figures. And it stuck with me. Not...