added support for group limits to minimisation