Initializing help system before first use

# XPRSpivot

Purpose
Performs a simplex pivot by bringing variable enter into the basis and removing leave.
Topic areas
Linear Algebra, Simplex
Synopsis
`int XPRS_CC XPRSpivot(XPRSprob prob, int enter, int leave);`
Arguments

prob | The current problem.
enter | Index of row or column to enter basis.
leave | Index of row or column to leave basis.

Error values

425 | enter is invalid (out of range or already basic).
426 | leave is invalid (out of range or not eligible, e.g. nonbasic, zero pivot, etc.).

Related controls
Double

PIVOTTOL | Pivot tolerance.
RELPIVOTTOL | Relative pivot tolerance.

Example
The following brings the 7th variable into the basis and removes the 5th:

    XPRSpivot(prob,6,4)

Further information
Row indices are in the range 0 to ROWS- 1, whilst columns are in the range ROWS+ SPAREROWS to ROWS+ SPAREROWS+ COLS- 1.
Related topics
XPRSgetpivotorder, XPRSgetpivots.
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.