Initializing help system before first use

# XPRSdelsets

Purpose
Delete sets from a problem.
Topic areas
Problem Creation, MIP Entities
Synopsis
`int XPRS_CC XPRSdelsets(XPRSprob prob, int nsets, const int setind[]);`
Arguments

prob | The current problem.
nsets | Number of sets to delete.
setind | An integer array of length nsets containing the sets to delete.

Example
In this example, sets 0 and 2 are deleted from the problem:

    setind[0] = 0; setind[1] = 2;
    XPRSdelsets(prob,2,setind);

Further information
1. After sets have been deleted from a problem, the numbers of the remaining sets are moved down so that the sets are always numbered from 0 to SETS-1 where SETS is the problem attribute containing the number of non-deleted sets in the problem.
2. This function cannot be called while the current problem is being solved or when it is in an interrupted state. Use XPRSpostsolve to restore the problem to a non-solving state.
Related topics
XPRSaddsets.
Parent Topic Console and Library Functions

© 2001-2026 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.