Hello, I am starting external solver from Matlab script using the following command. Sometimes the external solver fails to start and shows error message. I have written if-else statement for restarting external solver. Duration of normal run is about 30 minutes and failed one lasts for about 30 seconds so I thought that I can distinguish between those two and restart it using measuring time. Unfortunatelly, until on the screen is the error message and no one pushes OK button, it does not continue. So until I find there is the error message it can take much more than 30 seconds so entire run is failed then.
! "C:\Program Files\external_solver.exe" -i file1.dat -o file1.out;
! "C:\Program Files\external_solver.exe" -i file1.dat -o file1.out
I would like to ask you for help how to deal with restarting the external solver without manual input (clicking on the error message) in case it failes and show the error message.
Best regards Michal