preliminary implementation of objGradMin/objGradMax