フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

how can I compress many iterations for solving a program?

1 回表示 (過去 30 日間)
jimaras
jimaras 2014 年 2 月 3 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hello,
I have created a function that solves a linear program for many iterations, more specifically I am changing the X(i)=X(i)+10^(-4) and I am solving the Linear Program for the new value of the X and I check if this value satisfies an inquality, e.g. X<Y. Value of Y is the output of another function (it has the new X as an input) I have included in the first function. Unfortunately, I am having so many iterations and the execution time is so long. Do you have any ideas about how can I reduce it and make it more efficient?
Thank you in advance.
  8 件のコメント
jimaras
jimaras 2014 年 2 月 3 日
the inputs are double vectors. K0 is a double value. ArbitrageApple just solves a linear program for the new x which is an element of PriceFiltered double vector.

回答 (1 件)

Walter Roberson
Walter Roberson 2014 年 2 月 3 日
The HighestPrice code you show above is nearly as fast as you can get. You need to concentrate on making ArbitrageApple faster.

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by