Originally posted by: flywithme
Hi,everyone,
I need to access the interval solution value with opl interface in .net, here is my invoke method. line 1 - 5 work well, but line 6 raise a AccessDenied exception. anybody can help?
Thanks.
subCP.Next();
1 : ITupleSet alternatives = subOpl.GetElement("Alternatives").AsTupleSet();
2 : IIntervalVarMap altIntervals = subOpl.GetElement("AltIntervals").AsIntervalVarMap();
3 : foreach (ITuple tuple in alternatives)
4 : {
5 : IIntervalVar intervalVar = altIntervals.Get(tuple);
6 : subCP.GetStartMin(intervalVar);
7 : }
#DecisionOptimization#OPLusingCPOptimizer