Originally posted by: SystemAdmin
[Xjing6683 said:]
Hello everyone,
Iââ¬â¢m a beginner with iLOG OPL. I have a problem on I/O date from OPL to Excel by using VBA. The model can be run in the environment of iLOG OPL studio 3.7. The feasible solutions can be obtained within few seconds. I stop running by click the ââ¬ÅAbortââ¬Â button. But, if I invoke the OPL by using VBA in Excel. The error occurred: ââ¬ÅRuntime error: line 0: IlcCplex::postToCplex: CPLEX Error 1016: Restricted version. Problem size limits exceeded.ââ¬Â. So, Iââ¬â¢m confused with problem. Is it really the problem size limits exceeded?
And I tried to add the running time limit in the model by two ways:
1. Add the time limit in the .mod file by using :
search {
timeLimit(10) rankGlobal;
};
It can pass the compile, but it doesnââ¬â¢t work in the environment of iLOG OPL studio 3.7.
2. Add the time limit in the OPL by using :
Call solver.setFloatParameter("tiLim", 10)
Dim result As Long
result = solver.solve
It doesnââ¬â¢t work eitherââ¬Â¦..
What can I do? What is the exact way to set the running time limit in it?
Thank you~
#DecisionOptimization#OPLusingCPLEXOptimizer