Topic
  • 1 reply
  • Latest Post - ‏2013-07-04T09:41:48Z by VincentBeraudier
Milad
Milad
1 Post

Pinned topic Finding time and making output in OPL

‏2013-06-16T16:16:48Z |

Hi

 

I have two questions. first I want to send the reports and solution of my model to a text file (or any other file) automatically by the software, after it solved the problem.

Second, I want to know how can I find the below times:

1- time to get the first LP bound

2-time to the best solution (for the first time)

 

Thank you very much

Updated on 2013-06-16T16:17:06Z at 2013-06-16T16:17:06Z by Milad
  • VincentBeraudier
    VincentBeraudier
    13 Posts

    Re: Finding time and making output in OPL

    ‏2013-07-04T09:41:48Z  

    If you want to to it directly from an OPL model (that is not use any of the C++, Java or .NET API), then you should put a Javascript execute block as a post processing statement and use the IloOplOutputFile object.

    For the 2nd answer, either the JS IloCplex object has the needed methods, either you have to do an external Java call and use the Java CPLEX object.