Vector Optimization Problem - What should I use?
Afficher commentaires plus anciens
Which function should I use for the problem below?
I have a given matrix
of order
. I need to find the vector
of order
that minimizes
; subject to
1 -
, where
is a given vector of order 
2 - 
3 -
, where l and u are given scalar constraints.
Thanks for any help.
12 commentaires
Süleyman Polat
le 7 Jan 2022
Modifié(e) : Süleyman Polat
le 7 Jan 2022
Süleyman Polat
le 7 Jan 2022
Walter Roberson
le 7 Jan 2022
It means you do not have a license for the Global Optimization Toolbox
@Süleyman Polat You aren't allowed to post ga.m or other copyrighted Matlab material in the forum.
Süleyman Polat
le 7 Jan 2022
Torsten
le 7 Jan 2022
The "ver" command shows you the licenced toolboxes.
If the global optimization toolbox is listed, you should be able to use "ga".
The input vector to FITNESSFCN is a row vector ; so maybe you'll have to use
fun = @(x) norm(P*x.')
Süleyman Polat
le 7 Jan 2022
Walter Roberson
le 7 Jan 2022
ver() shows the installed toolboxes, not the licensed toolboxes.
C:\Program Files\MATLAB\R2016b\toolbox\globaloptim\globaloptim\ga.m % Has no license available
is specific: you do not have the license for the globaloptimation toolbox.
You can find various genetic algorithm implementations in the File Exchange.
Torsten
le 7 Jan 2022
Thank you - good to know.
There is no command to list the licensed toolboxes ?
temp = arrayfun(@(M){char(M.getName), license('test',char(M.getFlexName))}, com.mathworks.product.util.ProductIdentifier.values, 'UniformOutput', false);
temp = vertcat(temp{:});
licensed_products = temp([temp{:,2}]==1,1)
Réponses (0)
Catégories
En savoir plus sur Solver Outputs and Iterative Display dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!