optimizing a solution with 2 variables

Hey guys i am wondering if anyone has any advice for me.
Gist of it is - i have an equation i am trying to optimize for which has 2 input variables "k" and "d"
d ranges from 0 to 35 and increases in 0.1 increments
k ranges from 1 * 10^5 to 7 * 10^8 and increases in increments of 100
so i need to test every single k value for each d value - which i am having trouble figuring out how to code. at the end of it all i need to keep the lowest solution and its corresponding input variables.
Does anyone have any links to something similar or something educational i can use or any information for me?
Will definitely appreciate any feedback

1 件のコメント

Matt J
Matt J 2013 年 4 月 25 日
What's the function being minimized?

回答 (1 件)

Matt J
Matt J 2013 年 4 月 25 日
編集済み: Matt J 2013 年 4 月 25 日

0 投票

Pre-compute
kspace=1e5:100:7e8;
Now, just loop over d(i) and use the MIN command on
yourFunc(d(i),kspace)

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

質問済み:

2013 年 4 月 25 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by