primal dual schema