bugfix constrainOptimum in inference.hxx

* this should fix the problem in astar-test
* a ceanup for this method follow soon