How to write an objective function of optimization Problem in MATLAB containing three Sums?

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)

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

I want to optimise WA. But, WA is not a single vector, It varies with season and crop. I am not able to figure out how I ll write the objective function code for this type of problem.
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.

Sign in to comment.

Asked:

on 17 May 2020

Commented:

on 20 May 2020

Community Treasure Hunt

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

Start Hunting!