Reads annotations from a file.

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

Syntax

C#
public virtual void ReadAnnotations(
	string filename
)
Visual Basic
Public Overridable Sub ReadAnnotations ( _
	filename As String _
)

Parameters

filename
Type: System..::..String
Input file name.

Remarks

See the topic Annotating a model for CPLEX in the CPLEX User's Manual for a sample of the header of an annotation file. See the sample UFL_25_35_1 distributed with the product for an example of an annotated model.

Important: CPLEX deletes existing annotations before CPLEX attempts to read filename. Consequently, all currently existing annotations are deleted even if reading fails.

Because indicator constraints are not top-level modeling objects in Concert, this method ignores annotations for indicator constraints in filename. More specifically, upon input, this method resets the annotation for any indicator constraint to its default value.

Throws ILOG.Concert.Exception if the file could not be read, was corrupt, or annotations could not be constructed.

See Also