Legal commitments to enforce competition in electricity market