Home

Mikael Zayenz Lagerkvist

Welcome to my personal website. I am a researcher specializing in constraint programming, combinatorial optimization, and game tree search. My work explores efficient algorithms for solving complex decision problems, particularly in the context of board games and AI systems.

Feel free to explore my research page for a comprehensive list of my publications, or check out my blog for more informal discussions and insights into my work.

Recent Updates

  • Blog Post11 min read

    Adding WordVar to Gecode

    I have been working on a new variable type in Gecode for fixed-width machine words. A WordVar represents a word of 1 to 64 bits, where logical operators work bitwise, shifts move bits between positions, and masks select parts of a value.

    The Gecode logo built from blocks of zeroes and ones, each piece in its own colour and the G in white digits, over falling digits.
  • Blog Post14 min read

    Planning with open variable lists in Gecode

    A robot needs to fetch a packet from the shelf and put it down on the workbench. Easy enough: drive over to the shelf, pick up the packet, drive back, and put it down. Four actions. Unless the battery is low. Then the robot has to visit the charger first, and the questions become where in the plan that visit should go, and how long the robot should stay there.

    A green delivery robot recharges beside a workbench while an orange packet waits on the shelf.
  • Blog Post13 min read

    Introducing Zirql, an embeddable query language

    When implementing Zincite, I wanted a query language similar to the one I had built for Zirium. As with Zirium, I took inspiration from tools such as awk and jq, whose operations suit the data they work on: text records and fields for awk, JSON values for jq.

    The Zirql logo and wordmark
  • Blog Post12 min read

    How I write MiniZinc

    I like writing MiniZinc models. I think it is a nice language, and I have been using it for as long as it has existed. It lets me describe an optimisation problem directly, in a form that I can still read as the model grows. How I write a model includes how I organise its data, choose types, and express the rules, as well as how I lay out the source.

    An orange crystal Z
  • Blog Post5 min read

    zpres: presentations from text

    For ModRef 2026, I needed to give three presentations. This was apparently not enough of a deadline on its own, so I also decided to write a presentation system. zpres 0.1.0 is the result: an open-source presentation builder inspired by reveal.js.

    The zpres speaker view showing the current slide, next slide, speaker notes, and presentation controls
  • Blog Post9 min read

    Processing MLIR with Zirium

    Answering a small question about an MLIR file often takes more machinery than it should. If you want to know what uses a value, which operations feed a particular return, or whether a compiler pass changed dataflow rather than just renaming SSA values, plain text tools run out of steam quickly because operation names alone do not capture those links.

    The Zirium wordmark with an orange outlined Zi monogram
  • Blog Post6 min read

    zdev 1.0: yet another agentic loop, this one is mine

    When I use coding agents for work larger than a single patch, the harness usually handles each individual step well: exploring a repository, comparing designs, implementing a task, and reviewing a diff. The awkward part is keeping the work coherent from one session to the next. There are plenty of systems for running agentic loops, and I have built one too.

    The zdev task loop from exploration through implementation, verification, and completion

Projects

I am one of the developers of Gecode, an open source C++ toolkit for constraint programming. I also make browser puzzle games, with daily challenges and progress tracking. For work with coding agents, I built zdev to keep plans and tasks in the repository.

See all projects

Skills & Expertise

Research Areas

  • Constraint Programming
  • Combinatorial Optimization
  • Game Tree Search
  • Board Game AI
  • Machine Learning Applications

Technical Skills

  • Algorithm Design & Analysis
  • Optimization and scheduling
  • Python, C++, Java, TypeScript
  • Large Language Models and Neural Network Architectures
  • Software Engineering

Contact

Feel free to reach out to me at fromweb@zayenz.se