wthat is the right way to set integer variables in optimization solver ???
3 次查看(过去 30 天)
显示 更早的评论
I have problem with 28 variables, variables from 15 to 28 are discrete with available set {0.5,0.6,0.8,1.0,1.5,2,2.5} while other variables are continuous. i make m-file for obtain upper and lower bounds for problem with setting lower bounds for discrete variables by 1 and upper bounds by 7. after running main m-file for problem with penalty; i take the output of
[xbest,topbest,exitflag]= ga(@operatingtime_8bus,28,[],[],[],[],lb,ub,[],[15:28])
to be input for other m-file to get exact and corresponding values from the discrete set.
But the final values violate constraints, what is the problem for this and what is the right way to treate with integer variables in Genetic Algorithm and particle swarm optimization techniques????
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Particle Swarm 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!