ILOG CPLEX .NET Reference Manual

Cplex.ReadSolution Method 

Reads a solution from the SOL file denoted by name and copies this information into the invoking object.

public virtual void ReadSolution(
   string name
);

Parameters

name
The name of the file to read.

Remarks

This routine is used to initiate a crossover from a barrier solution, to restart the simplex method with an advanced basis, or to specify all the variable values for a MIP start. The parameter AdvInd must not be 0 (zero) in order for the solution file to take effect. For example, its default value, 1 (one) is an appropriate setting.

By convention, the file extension is .Sol. The SOL file format is documented in the reference manual ILOG CPLEX File Formats and in the stylesheet solution.Xsl and schema solution.Xsd in the include directory of the product. Samples of its use appear in the examples distributed with the product and in the ILOG CPLEX User's Manual.

See Also

Cplex Class | ILOG.CPLEX Namespace