x =
ga (fitnessfcn, nvars)
¶x =
ga (fitnessfcn, nvars, A, b)
¶x =
ga (fitnessfcn, nvars, A, b, Aeq, beq)
¶x =
ga (fitnessfcn, nvars, A, b, Aeq, beq, LB, UB)
¶x =
ga (fitnessfcn, nvars, A, b, Aeq, beq, LB, UB, nonlcon)
¶x =
ga (fitnessfcn, nvars, A, b, Aeq, beq, LB, UB, nonlcon, options)
¶x =
ga (problem)
¶[x, fval] =
ga (…)
¶[x, fval, exitflag] =
ga (…)
¶[x, fval, exitflag, output] =
ga (…)
¶[x, fval, exitflag, output, population] =
ga (…)
¶[x, fval, exitflag, output, population, scores] =
ga (…)
¶Find minimum of function using genetic algorithm.
Inputs
The objective function to minimize. It accepts a vector x of size 1-by-nvars, and returns a scalar evaluated at x.
The dimension (number of design variables) of fitnessfcn.
The structure of the optimization parameters; can be created using
the gaoptimset
function. If not specified, ga
minimizes
with the default optimization parameters.
A structure containing the following fields:
fitnessfcn
nvars
Aineq
Bineq
Aeq
Beq
lb
ub
nonlcon
randstate
randnstate
solver
options
Outputs
The local unconstrained found minimum to the objective function, fitnessfcn.
The value of the fitness function at x.
See also: gaoptimset.
Package: ga