Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Thread Subject:
GA bit string constraint

Subject: GA bit string constraint

From: Dave Brackett

Date: 1 Jul, 2011 20:38:11

Message: 1 of 1

Hi I am using a GA with the bit string representation (0 1). Over the length of the bit string I need to constrain the proportion of 1s or 0s, e.g. for there to always be 50% 1s.

Can anyone advise me on how to implement this please? I cannot seem to work it out. Thanks very much!

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us