NO FRAMES

CPXreadcopybase

int CPXPUBLIC CPXreadcopybase(CPXCENVptr env, CPXLPptr lp, const char * filename_str)
Definition file: cplex.h
Include files: cplex.h

The routine CPXreadcopybase reads a basis from a BAS file, and copies that basis into a CPLEX problem object. The parameter CPX_PARAM_ADVIND must be set to 1 (one), its default value, in order for the basis to be used for starting a subsequent optimization.

Example

 status = CPXreadcopybase (env, lp, "myprob.bas");

Parameters:

env

A pointer to the CPLEX environment as returned by CPXopenCPLEX.

lp

A pointer to a CPLEX problem object as returned by CPXcreateprob.

filename_str

The name of the file from which the basis should be read.

Returns:

The routine returns zero on success and nonzero if an error occurs.