Optimization of random matrix

3 views (last 30 days)
abdelelah alzahed
abdelelah alzahed on 13 Feb 2016
Commented: Walter Roberson on 16 Feb 2016
Hello, I have a matrix 'MC' of 6 x 6 random complex numbers. My problem is how to define my fitness function to optimize the matrix elements using GA ? Can any one help
Here is the code I'm using,
function costFunction = FACGFSEM(MC)
FF(:,:,t)=F(:,:,t)*MC;
costFunction = sum(sum(FF))
  12 Comments
abdelelah alzahed
abdelelah alzahed on 15 Feb 2016
Edited: abdelelah alzahed on 15 Feb 2016
Will that make the MC matrix only with one variable repeated ? or should I change the number of variables in the optimization tool to 36 ?
Anyway, Thanks It's working but it's taking too long
Walter Roberson
Walter Roberson on 16 Feb 2016
That will make the MC matrix out of a vector of 36 values, which is what your tool should be set to expect.
When I try with a randomly populated F, I find that the mathematics favours driving the coefficients arbitrarily large, with wilder and wilder differences between the positive and negative contributions, with the objective function going more and more infinitely negative.
I could see the benefit of a closely related objective if the layers of F were all positive definite (or semi-definite) matrices, but I cannot see the benefit of optimizing this present calculation -- not unless there are bounds on the inputs.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!