Vector Optimization Problem - What should I use?
Show older comments
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 Comments
Süleyman Polat
on 7 Jan 2022
Edited: Süleyman Polat
on 7 Jan 2022
Süleyman Polat
on 7 Jan 2022
Walter Roberson
on 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
on 7 Jan 2022
Torsten
on 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
on 7 Jan 2022
Walter Roberson
on 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
on 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)
Answers (0)
Categories
Find more on Solver Outputs and Iterative Display in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!