Is the ga in the ga toolbox of matlab continuous GA or binary GA?

2 views (last 30 days)
I want to know if the GA used in matlab optimization toolbox assumes default as continuous or binary?
  1 Comment
jgg
jgg on 23 Jan 2016
Do you mean in terms of the variables you put as an input to the objective function? It can support both binary and continuous parameters.

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 23 Jan 2016
The default PopulationType is 'double', which is continuous variables. You need to specifically use an optimset() of PopulationType bitstring if you want to use binary variables.

Categories

Find more on Get Started with Optimization Toolbox in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!