Parfor vs For: Different Solutions
이전 댓글 표시
Hi, estimate function comes up with different results when we use it in for and parfor loops with ARIMA models having large parameters such as AR> 6 and MA>5. We use fmincon and change the tolerances (made it the same in each cases), and then observe that depending on the tolerance values, the results may coincide (but not in all cases). In order to understand if for or parfor gives the " correct" (more reliable) result, we give the ARIMA models to Economic Modeler. The results of the modeler are the same with results that we find by using for loop with default parameters. When we have examined each iterations of fmincon (used in estimate function), the algorithms do not stop at the same iteration even though the tolerance values have been the same (when either default or given by us). In parfor case, the algorithm iterates more and comes up with a result having higher objective value, namely, maximum likelihood, where it is a minimization problem.
In short: we would like to understand what causes that parfor and for loops come up with different results and how we can be sure that they give the same results.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Parallel for-Loops (parfor)에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!