Azzera filtri
Azzera filtri

optimization to get the least ratio of variables for two functions

8 visualizzazioni (ultimi 30 giorni)
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

Risposte (1)

Thorsten
Thorsten il 5 Ott 2016
You get the index of the minimum ratio A/B using
[~, idx] = min(A./B);
  1 Commento
m naveed
m naveed il 5 Ott 2016
Modificato: m naveed il 5 Ott 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

Accedi per commentare.

Categorie

Scopri di più su Optimization in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by