An open-source library for mathematical programming