Writes solution information of the incumbent solution
in SOL format to the file specified by name.
Namespace: ILOG.CPLEX
Assembly: ILOG.CPLEX (in ILOG.CPLEX.dll) Version: 22.1.1.0
Syntax
| C# |
|---|
public virtual void WriteSolution( string name ) |
| Visual Basic |
|---|
Public Overridable Sub WriteSolution ( _ name As String _ ) |
Parameters
- name
- Type: System..::..String
The name of the file to write.
Remarks
A SOL file can later be read back into CPLEX with the method Cplex.ReadStartInfo. 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 in the 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.