Optimal Planning

For a Planning Task find the optimal Plan or return unsolvable if no plan exists.