How to fix time for simulation (Say if i want to see some result after some specific time)

1 回表示 (過去 30 日間)
I am working on some optimization problem.I am trying to compare two methods with respect to time .... for that.....I need to fix specific time for both programs ....Please help how to do that in matlab...if i want see result of optimization after 1 min for both the programs.how to do it???

採用された回答

Jan
Jan 2011 年 11 月 28 日
1 minute simulation time or processing time? If you want the later, this is a very strange measurement. Imagine on optimization method needs 30 seconds for initialisation and 31 seconds to get the result with a quadratic convergence at the end. The other method needs 0.5 seconds for initialisation and 100 seconds to reach the final point, but it converges linearily only. What does a temporary result after 60 seconds tell you then?!
  1 件のコメント
sita
sita 2011 年 11 月 29 日
Thanks Jan...
I want to compare two methods, suppose one method takes 1min time and other method takes 1min and 30 seconds to run. So i want to see the second method how near that solution after 1min for actual optimized solution...That means it needs to fix processing time 1min for second method.... Please help me how to do this in matlab...

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with Optimization Toolbox についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by