twd-solver