Imagine a continuum, at one extreme the party setting its policies entirely by ideology, and at the other extreme the party setting its policies entirely by what will get the party into power.
Where should a party choose its policies from on this continuum?