cost function) that must be minimized is an incredibly compl