diff --git a/models/run.ps1 b/models/run.ps1 new file mode 100644 index 0000000000000000000000000000000000000000..678eec4d2add9297df275e8b52359e9e4d8e12ab --- /dev/null +++ b/models/run.ps1 @@ -0,0 +1,15 @@ +function Run-MatlabBatch { + param ( + [string]$fileName, + [int]$modelsValue, + [string]$logFile + ) + + while (-not (Test-Path $fileName)) { + matlab -batch "MODELS=$modelsValue; compute_transition;" | Tee-Object -FilePath $logFile -Append + } +} + +Run-MatlabBatch -fileName "m10-done.info" -modelsValue 1 -logFile "m10-all.log" +Run-MatlabBatch -fileName "m20-done.info" -modelsValue 2 -logFile "m20-all.log" +Run-MatlabBatch -fileName "m30-done.info" -modelsValue 3 -logFile "m30-all.log" \ No newline at end of file