Clear Filters
Clear Filters

optimization to get the least ratio of variables for two functions

8 views (last 30 days)
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

Answers (1)

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

Sign in to comment.

Categories

Find more on Optimization in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!