Optimization of random matrix
3 views (last 30 days)
Show older comments
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
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.
Answers (0)
See Also
Categories
Find more on Genetic Algorithm in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!