Genetic algorithm options in MATLAB R2013

3 次查看(过去 30 天)
I want to know how I can enter "PopulationSize" and "MaxGeneration" into my options of Genetic algorithm in MATLAB R2013. I think it does not have such options so I need to know how I should put these options into my related codes? These are the options which my "ga" function has:
Display: 'final'
MaxFunEvals: []
MaxIter: []
TolFun: 1.0000e-06
TolX: []
FunValCheck: []
OutputFcn: []
PlotFcns: []
ActiveConstrTol: []
Algorithm: []
AlwaysHonorConstraints: []
BranchStrategy: []
DerivativeCheck: []
Diagnostics: []
DiffMaxChange: []
DiffMinChange: []
FinDiffRelStep: []
FinDiffType: []
GoalsExactAchieve: []
GradConstr: []
GradObj: []
HessFcn: []
Hessian: []
HessMult: []
HessPattern: []
HessUpdate: []
InitialHessType: []
InitialHessMatrix: []
InitBarrierParam: []
InitTrustRegionRadius: []
Jacobian: []
JacobMult: []
JacobPattern: []
LargeScale: []
MaxNodes: []
MaxPCGIter: []
MaxProjCGIter: []
MaxRLPIter: []
MaxSQPIter: []
MaxTime: []
MeritFunction: []
MinAbsMax: []
NodeDisplayInterval: []
NodeSearchStrategy: []
NoStopIfFlatInfeas: []
ObjectiveLimit: []
PhaseOneTotalScaling: []
Preconditioner: []
PrecondBandWidth: []
RelLineSrchBnd: []
RelLineSrchBndDuration: []
ScaleProblem: []
Simplex: []
SubproblemAlgorithm: []
TolCon: 1.0000e-06
TolConSQP: []
TolGradCon: []
TolPCG: []
TolProjCG: []
TolProjCGAbs: []
TolRLPFun: []
TolXInteger: []
TypicalX: []
UseParallel: 'never'
When I set my "PopulationSize" and "MaxGeneration" to my desire values, MATLAB gives me error :
Unrecognized parameter name 'PopulationSize'. Please see the optimset reference page in the
documentation for a list of acceptable
option parameters. Link to reference page.
I know that my MATLAB does not have such options. I just need to know how I can adjust these values in MATLABR2013.

回答(2 个)

Star Strider
Star Strider 2021-6-7
I do not have access to the R2013x documentation, since it is no longer available online.
Are you certain those options are for the ga function?
The ga function does not use Jacobian, Hessian, or similar options, since it does not use gradient descent.
Otherwise, 'MaxGenerations' could be 'MaxIter', however nothing in those options would appear to be specific to the ga function.

Steven Lord
Steven Lord 2021-6-7
See this documentation page for a list of the options changes that took place in release R2016a in Global Optimization Toolbox.
There's a similar documentation page for Optimization Toolbox.

类别

Help CenterFile Exchange 中查找有关 Genetic Algorithm 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by