An optimal solution of goal setting systems