On the unconstrained optimization of partially separable functions