Purpose
 
 
 
 Load a previously saved basis.
 
  
  Synopsis
 
 
 int XPRBloadbasis(XPRBbasis basis); 
 
 
  Argument
 
 
 
  
   | 
     basis 
     | 
     Reference to a previously saved basis.
     | 
 
 
  Return value
 
 
 0 if function executed successfully, 1 otherwise.
 
  Example
 
 
 The following code saves the current basis prior to some matrix changes, before subsequently reloading the saved basis to solve the linear relaxation.
 
 
 XPRBprob expl2;
XPRBbasis basis;
   ...
expl2 = XPRBnewprob("example2");
XPRBlpoptimize(expl2, "");
basis = XPRBsavebasis(expl2);
   ...
XPRBloadmat(expl2);
XPRBloadbasis(basis);
XPRBdelbasis(basis);
XPRBlpoptimize(expl2, "");
  
  Further information
 
 
 This function loads a basis for the current problem. The basis must have been saved using function
 
XPRBsavebasis. It is
 
not possible to load a basis saved for any other problem than the current one, even if the problems are similar. This function takes into account that the problem may have been modified since the basis has been stored (addition of variables and constraints is handled—deletion of constraints is not handled: instead of entirely deleting a constraint, change its type to
 
XPRB_N using
 
XPRBsetctrtype if you wish to load the basis later on). For reading a basis from a file, the Optimizer library function
 
XPRSreadbasis may be used. Note that the problem has to be loaded explicitly (function
 
XPRBloadmat) before the basis is re-input with
 
XPRBloadbasis. Furthermore, if the reference to a basis is not used any more it should be deleted using function
 
XPRBdelbasis.
 
  Related topics
 
 
 XPRBdelbasis,
 
XPRBsavebasis,
 
XPRSreadbasis (see Optimizer Reference Manual),
 
XPRSwritebasis (see Optimizer Reference Manual).
 
 
                 
                
                    © 2001-2023 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.