Criteria is lowest cost function, minimum work path