int QSchange_objsense (QSprob p, int newsense)
/* p is an initialized QSprob, change it to maximization */

int rval;

rval = QSchange_sense (p, QS_MAX);
if (rval) {
    fprintf (stderr, 
             "QSchange_objsense failed with return code %d\n", rval);
}