use problemSolver->addConstraintToConfigProject instead of configProjector->addConstraint in function setNumericalConstraints