How to solve the problem that the hybrid algorithm in mixed integer programming is ignored
Mostra commenti meno recenti
lb = [0.0002 0.0002 5];
ub = [0.001 0.002 19];
intcon = 3;
nonlcon = @yueshu;
hybridopts = optimoptions('fmincon','OptimalityTolerance',1e-10);
options = optimoptions('ga','HybridFcn',{'fmincon',hybridopts});
[x,fval] = ga(fun,nvars,A,b,Aeq,beq,lb,ub,nonlcon,intcon,options)
When I run the hybrid algorithm above, MATLAB gives a warning:GA ignores 'HybridFcn' option when the problem contains integer constraints.My version is 2022b, how to solve this situation, are there any experts who understand
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Univariate Discrete Distributions in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!