Subgoaling Techniques for Satisficing and Optimal Numeric Planning