ILOG CPLEX .NET Reference Manual

Cplex.WriteSolution Method 

Writes solution information from an optimization in SOL format to the file indicated by name.

public virtual void WriteSolution(
   string name
);

Parameters

name
The name of the file to write.

Remarks

A SOL file can later be read back into CPLEX with the method Cplex.ReadSolution. 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