No description
Find a file
2026-06-10 12:44:59 -04:00
templates minor fixes to actually do something with agent availability 2026-06-10 12:44:59 -04:00
.gitignore added intermediate printing 2026-06-05 13:57:00 -04:00
.python-version before LLM fucks things up 2026-06-05 12:04:15 -04:00
agents.txt ... 2026-06-08 11:35:22 -04:00
constraint_validator.py added resource constraints 2026-06-09 16:53:35 -04:00
docker-compose.yml docker compose 2026-06-10 12:44:37 -04:00
Dockerfile web server with docker container 2026-06-09 15:26:51 -04:00
printer.py stuff 2026-06-09 12:57:36 -04:00
pyproject.toml web server with docker container 2026-06-09 15:26:51 -04:00
README.md README 2026-06-09 17:09:09 -04:00
solve.py minor fixes to actually do something with agent availability 2026-06-10 12:44:59 -04:00
uv.lock web server with docker container 2026-06-09 15:26:51 -04:00
web_solve.py minor fixes to actually do something with agent availability 2026-06-10 12:44:59 -04:00

DWS city resource solver

This is a Python program which solves for maximal resources in days without strife with Google OR tool's CP-SAT solver. See solve.py for details. web_solve.py provides a web UI to churn through various scenarios more easily.

agents.txt is all the auction and brotherhood agents I could copy and paste from the Nomad's guide in early June 2026 it and the way agents work in solve.py may be out of date.

printer.py provides some code for verbose logging in solve.py.

WARNING: Vibe Coded

If you see something nonsensical that's why.

For me this work is disposable so issues with quality resulting from LLM usage is fine.

I suspect regardless of LLM usage solve.py would be a rats nest either way due to the fact that encoding constraints is both tedious and obtuse although the LLM following in the footsteps of mathemeticians with overly terse variable names doesn't help.

Running

There's a dockerfile and docker compose if you like using those but otherwise you'll need Google OR tools for just the optimizer in solve.py if you're running that directly, in a repl or a notebook.

You'll need Flask if you wanna run the web UI.

If you're lazy and not choosing docker you can use uv to run this.