Initializing help system before first use

# problem.loadbasis

Purpose
This subroutine is deprecated and will be removed in a future release. Use problem.loadBasis instead.
Loads a basis as specified by the user.
Synopsis
`problem.loadbasis(rowstat, colstat)`
Arguments

rowstat | Array of length problem.attributes.rows containing the basis status of the slack, surplus or artificial variable associated with each row. The status must be one of:
0 | slack, surplus or artificial is non-basic at lower bound;
1 | slack, surplus or artificial is basic;
2 | slack or surplus is non-basic at upper bound.
3 | slack or surplus is super-basic.
colstat | Array of length problem.attributes.cols containing the basis status of each of the columns in the constraint matrix. The status must be one of:
0 | variable is non-basic at lower bound or superbasic at zero if the variable has no lower bound;
1 | variable is basic;
2 | variable is at upper bound;
3 | variable is super-basic.

Example
This example loads a problem and then reloads a (previously optimized) basis from a similar problem to speed up the optimization:

    p.read("problem", "")
    p.loadbasis(rstatus, cstatus)
    p.lpoptimize("")

Further information
If the problem has been altered since saving an advanced basis, one can alter the basis as follows before loading it:

- Make new variables non-basic at their lower bound (cstatus[icol]=0), unless a variable has an infinite lower bound and a finite upper bound, in which case make the variable non-basic at its upper bound (cstatus[icol]=2);
- Make new constraints basic (rstatus[jrow]=1);
- Try not to delete basic variables, or non-basic constraints.

Related topics
problem.getBasis, problem.getPresolveBasis, problem.loadPresolveBasis, problem.loadBasis.
Parent Topic Deprecated functionality

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