Annotations for .NET API users

CPLEX offers features to support annotations of your model for Benders decomposition in the .NET API.

In the .NET API, CPLEX offers features to support annotation of your model. These classes to support annotations:

  • Cplex.Annotation
  • Cplex.LongAnnotation

These methods of the class Cplex support annotations:

  • NewLongAnnotation(String name)
  • NewLongAnnotation(String name, long defval)
  • FindLongAnnotation(String name)
  • FindLongAnnotation(int num)
  • GetAnnotationName(LongAnnotation annotation)
  • GetNumLongAnnotations()
  • DelAnnotation(LongAnnotation annotation)
  • HasLongAnnotation(String name)
  • GetDefaultValue (LongAnnotation annotation)
  • GetAnnotation (LongAnnotation annotation, IloNumVar var)
  • GetAnnotation (LongAnnotation annotation, IloIntVar var)
  • GetAnnotation (LongAnnotation annotation, IloObjective obj)
  • GetAnnotation (LongAnnotation annotation, IloConstraint con)
  • GetAnnotation (LongAnnotation annotation, IloAddable[] items)
  • SetAnnotation(LongAnnotation annotation, IloNumVar var, long value)
  • SetAnnotation(LongAnnotation annotation, IloObjective obj, long value)
  • SetAnnotation(LongAnnotation annotation, IloConstraint con, long value)
  • SetAnnotation(LongAnnotation annotation, IloAddable[] items, long[] values)
  • WriteAnnotations(String filename)
  • ReadAnnotations(String filename)
  • WriteBendersAnnotation(String filename)