Borrar filtros
Borrar filtros

How to set a time limit to the hermiteForm function

3 visualizaciones (últimos 30 días)
Christoph Neumann
Christoph Neumann el 14 de Abr. de 2020
Comentada: Christoph Neumann el 3 de Jun. de 2020
I am using Matlabs function hermiteForm to (try to) solve systems of linear diophantine equations. The size of the system varies largely for each instance and I want to ensure each gets at most 30 minutes.
but I wasn't sure whether it would be a good thing to modify the MathWorks function and include toc commands. Even if it were, I wouldn't know where to put them.
Another approach I thought about would be to look at the problem size and only pass systems where it's realistic that Matlab can finish within a given time limit. But then, this depends on so many different factors that it seems impossible to choose exactly those systems where Matlab can come up with a solution within a given time.
Any help is really appreciated
  4 comentarios
Walter Roberson
Walter Roberson el 2 de Jun. de 2020
Parallel Computing and cancel the future.
Mathworks does not provide any documented function to execute a section of code for a limited amount of time. Anything at the MATLAB level that tried to do that would have problems with the possibility of the code being in the middle of calling an external library. (I have not investigated what happens if you cancel a busy future.)
Christoph Neumann
Christoph Neumann el 3 de Jun. de 2020
Okidoke. Thanks for your effort!

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Solver Outputs and Iterative Display en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by