Genetic algorithm options in MATLAB R2013

조회 수: 9 (최근 30일)
Mhmmd Sjj
Mhmmd Sjj 2021년 6월 7일
답변: Steven Lord 2021년 6월 7일
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