infer: flexibilizing the API in DualDecomposition