 Different cost functions and different strategies were used to optimize a many-body trial-function.Usually three cost functions were used in QMC optimization energy, variance or a linear combination of them.The variance optimization method has the advantage that the exact wavefunction's variance is known.