How do I write the constraint NGPM -- A NSGA-II Program in Matlab
Show older comments
For Example
if x = [4 3 1 1 3 2 2 4 1];
and I Convert x into TDMT by my algorithm as follow:
CASE1 :TDMT = [0 0 0 0 0 0 0;
0 0 0 0 0 0 0;
0 0 0 0 0 0 0;
0 0 0 0 0 0 0;
0 0 0 0 0 0 0;
0 0 0 0 0 0 0;
0 0 0 0 0 0 0;
0 0 0 0 0 0 0;
0 0 0 0 0 0 0];
Case 2:TDMT = [1 0 0 0 0 0 0;
0 0 0 1 0 0 0;
0 0 0 0 1 0 0;
0 0 0 0 1 0 0;
0 0 0 0 0 0 0;
0 0 0 0 0 1 0;
0 0 1 0 0 0 0;
0 1 0 0 0 0 0;
1 0 0 0 0 0 0];
In case 1 that sum of TDMT is equal to 0, I don't want the optimization model show the answer from X. In the other hand, TDMT is more than 0 the optimization result will show the answer of x.
Now, I try to solve this problem but they still show the optimization result that TDMT is equal to 0
than you for your helpful
Answers (0)
Categories
Find more on Genetic Algorithm 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!