Wraps the runSimIGM simulation function with automated execution timing,
recording the start time, end time, and total elapsed duration, and returning/saving
a consolidated list containing simulation outcome metrics and timing metadata.
Usage
runSimWithTiming(
size = 1e+06,
seedNo = 2000,
fileIGMData = "igmData.Rdata",
errorFile = "igmData.csv"
)Arguments
- size
Integer. Total number of random PRM simulation iterations to execute (default:
1000000).- seedNo
Integer. Seed number for pseudo-random number generator initialization (default:
2000).- fileIGMData
Character string. Output RData file path to save the timing and result metadata (default:
"igmData.Rdata").- errorFile
Character string. CSV file path for logging simulation results and discrepancies (default:
"igmData.csv").
Value
A named list containing:
- error
Logical status flag returned by
runSimIGM(FALSEif no errors found,TRUEif discrepancy detected).- startTime
POSIXcttimestamp recorded when execution started.- endTime
POSIXcttimestamp recorded when execution completed.- timeSlot
difftimeobject representing the total elapsed execution time.
References
Yuen, K. K. F. (2024). Inverse Gram Matrix Methods for Prioritization in Analytic Hierarchy Process: Explainability of Weighted Least Squares Optimization Method. arXiv preprint arXiv:2401.01190. https://doi.org/10.48550/arXiv.2401.01190