Get the latest tech news

A dumb introduction to z3


Exploring the world of constraint solvers with very simple examples.

The MiniZinc homepage(another popular solver) has a couple of nice examples: a seating chart, rostering, vehicle routing, grid coloring. To actually extract the values programmatically, instead of debug printing model, requires some song and dance with the API, but it is simple, really. The problem is that Int really spans the entire natural integers range, so it is accounting for negative amounts of coins.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Rust

Rust

Photo of dumb introduction

dumb introduction

Related news:

News photo

Tyr Driver Being Submitted For Linux 6.18 As Rust-Based Arm Mali Driver

News photo

Asciinema CLI 3.0 rewritten in Rust, adds live streaming, upgrades file format

News photo

Linux 6.18 To Allow Rust And C Code To Use The Same Memory Model