Originally posted by: SystemAdmin
Hello. I am working in Java (with Eclipse) with 12.4 and having some issues with the getRay() method. The problem I run into is this, used as documentation tells me it should be, for instance
IloLinearNumExpr ray = cplex.getRay();
it will not run and give me an error that it needs an IloNumArray and IloNumVarArray argument:
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
The method getRay(IloNumArray, IloNumVarArray) in the type IloCplex is not applicable for the arguments ()
looking through documentation for older versions, it seems that the method used to need these arguments, so I tried to use it by passing the two appropriate arguments and get
Exception in thread "main" java.lang.UnsupportedOperationException
at ilog.cplex.IloCplex.getRay(IloCplex.java:16129)
at example.main(example.java:38)
which I am guessing is something I am at fault for, but I don't think I should be seeing this error as I shouldn't need arguments.
I'm also unable to run the BendersATSP.java example which uses getRay() as well.
Thoughts on why I may be running into this issue with getRay() or what I can do (ideally) to have it function as it should without arguments?
#CPLEXOptimizers#DecisionOptimization