ENH: added solve_pf, solve_both methods