bugfix constrainOptimum in inference.hxx