Added constraint callbacks setable by setting pre_solve and post_solve properties, it is a little ugly