Annotations for Java API users
CPLEX offers support for annotations in the Java API.
Also in the Java API, CPLEX offers features to support annotation of your model. These classes support annotations:
- IloCplex.Annotation
- IloCplex.LongAnnotation
These methods of IloCplex 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)