pole as constraint instead of cost