How to write an objective function of optimization Problem in MATLAB containing three Sums?
Show older comments
I want to solve an optimization problem in MATLAB using GA. But, I am really confused to how should I frame the objective function in the code as the objective seems four dimensional. The equation of the objective function is attached as a picture here with. In this problem, WA is the unkown variable which I want to determine. All other variables are known. Kindly, guide me!
Thank you in advance!
Answers (1)
Star Strider
on 17 May 2020
0 votes
If I am reading it correctly, all the nested sums should produce one scalar result, so use that as the output of the fitness function.
The problem arises in that I do not understand what the parameters are that the fitness function would optimise. That has to be a single vector of parameters, passed as an argument to ga (although the fitness function can have more than that one argument if it is necessary to pass more than one to the fitness function).
2 Comments
Smaranika Mahapatra
on 20 May 2020
Star Strider
on 20 May 2020
I have no idea what any of them are, or whether they are single matrices or implied matrix products (so for example is
one 4D matrix, or is it
) and so for the others?
It seems to me that if it varies with season and crop, it would need to be optimised that way, so there is likely no one formulation of it.
I have no idea what any of those mean, or what you are doing.
Categories
Find more on Choose a Solver 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!