In your err fun:

P = 1/ERRORS
errfun = VTPV ( errfun = min )