Info

This question is closed. Reopen it to edit or answer.

How to generate non-equal solution vector?

1 view (last 30 days)
viva90
viva90 on 13 Sep 2015
Closed: MATLAB Answer Bot on 20 Aug 2021
Hello, I am using ga (genetic algorithms) with integer variables. The variables are bound to 1-4. I want all of the out put solutions be unique i.e. non of them be similar to each other, like this one [1 3 4 2]. But when I run ga toolbax, the out put is something like: [2 3 3 1] which is not favorable because it contains two 3 and does not include number 4.
Can you please help? Thanks.

Answers (0)

Community Treasure Hunt

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

Start Hunting!