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

Namespace: ILOG.CPLEX
Assembly: ILOG.CPLEX (in ILOG.CPLEX.dll) Version: 22.1.1.0

Syntax

C#
[ObsoleteAttribute("Since V20.1.0")]
public virtual void ReadSolution(
	string name
)
Visual Basic
<ObsoleteAttribute("Since V20.1.0")> _
Public Overridable Sub ReadSolution ( _
	name As String _
)

Parameters

name
Type: System..::..String
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 CPLEX File Formats Reference Manual 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 CPLEX User's Manual.

Deprecated since V20.1.0; use ReadStartInfo(String) instead.

See Also