int QSadd_row (QSprob p, int cnt, int *rmatind, double *rmatval, double rhs, char sense, const char *name)
/* Assume p is initialized to the problem in the QSload_prob example. */ /* Add the constraint 0.5x + 2.0y + 4.0z >= 6.0 to the LP. */ int rval; int rmatind[3] = { 0, 1, 2 }; int rmatval[3] = { 0.5, 2.0, 4.0 }; rval = QSadd_row (p, 2, rmatind, rmatval, 6.0, 'G', (const char *) NULL); if (rval) { fprintf (stderr, "QSadd_row failed with return code %d\n", rval); }