Here's the stuff we found when you searched for "cost function"

If you Log in you could create a "cost function" node. If you don't already have an account, you can register here.