結果 : how to write an objective function from a word problem