XPRBgetmiis
XPRBgetmiis |
int XPRBgetmiis(XPRBprob prob, XPRBvar **arrvar, int *numv, XPRBctr **arrctr, int *numc, XPRBctr **arrsos, int *nums, int numiis);
prob
|
Reference to a problem.
|
arrvar
|
Reference to a table of BCL variables (may be
NULL).
|
numv
|
Reference to an integer that gets assigned the number of variables returned by the function (may be
NULL).
|
arrctr
|
Reference to a table of BCL constraints (may be
NULL).
|
numc
|
Reference to an integer that gets assigned the number of constraints returned by the function (may be
NULL).
|
arrsos
|
Reference to a table of BCL SOS (may be
NULL).
|
nums
|
Reference to an integer that gets assigned the number of SOS returned by the function (may be
NULL).
|
numiis
|
Sequence number of the IIS or value 0 to access the IIS approximation.
|
XPRBprob expl2; XPRBctr *iisctr; XPRBvar *iisvar; XPRBvar *iissos; int numv, numc, nums; expl2 = XPRBnewprob("example2"); ... XPRBmipoptimize(expl2, ""); if(XPRBgetmipstat(expl2)==XPRB_MIP_INFEAS) { XPRBgetmiis(expl2, &iisvar, &numv, &iisctr, &numc, &iissos, &nums, 1); printf("Variables: "); /* Print all variables */ for(i=0;i<numv;i++) printf("%s ", XPRBgetvarname(iisvar[i])); printf("\n"); XPRBfreemem(iisvar); /* Free the array of variables */ printf("Constraints: "); /* Print all constraints */ for(i=0;i<numc;i++) printf("%s ", XPRBgetctrname(iisctr[i])); printf("\n"); XPRBfreemem(iisctr); /* Free the array of constraints */ printf("SOS: "); /* Print all SOS */ for(i=0;i<nums;i++) printf("%s ", XPRBgetsosname(iissos[i])); printf("\n"); XPRBfreemem(iissos); /* Free the array of SOS */ }
© 2001-2019 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.