optimal cost function

words: 2 + 11 = 13
last update: