ga

Optimization

Genetic algorithm optimizer (alias for sl_genetic).

Syntax

ga(f, nvars)
ga(f, nvars, lb, ub)

Examples

ga('(x(1)-1)^2 + (x(2)-2)^2', 2)
▶ Run

Limitations

Requires server acceleration.

See Also

This function requires server acceleration. Available on paid tiers.

Try SimLab — Free MATLAB® Alternative

466 functions. Runs in your browser. No install.

Open SimLab

Stay Updated

Get notified about new simulations and tools. We send 1-2 emails per month.