optimization to get the least ratio of variables for two functions

1 次查看(过去 30 天)
hi all... can someone help me with this pblm
i have 4 equations which has three types of variable. type_1: a ' 240 X 1 ' lets say T_1 column vector, type_2: 4 variables for which i use solve function to solve. type_3: D, K. For all 240 values of T_1, i should solve 4 equations for 4 variables. so now i have 240 values for each of 4 variables. At the end i have a small function in which i should manipulate these 4 variables to get a single value lets say A. I have another T_2 column vector, for which i should do the same and i get the single value at the end B. here is the problem which i want to ask... i have to get the optimized values of D,K variables, which i yet have not told u about, for which i should get the minimum ratio. i.e. A/B<=1 hope someone can understand the question and help me out.. thanks in advance

回答(1 个)

Thorsten
Thorsten 2016-10-5
You get the index of the minimum ratio A/B using
[~, idx] = min(A./B);
  1 个评论
m naveed
m naveed 2016-10-5
编辑:m naveed 2016-10-5
sorry, didnt get it...i want to get the optimum K, D variable value to minimize this ratio. objective is to get K, D

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Optimization 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by