CalGR function

Calibration algorithm that optimises the error criterion selected as objective function