Genetic algorithm - Constraint Function

1 次查看(过去 30 天)
Objective function: f(x) = x(1) + 2*x(2) + 3*x(3) + 4*x(4)
Constraint function: x(1) + x(2) + x(3) + x(4) - 5 = 0
Based on the statement above, the constraint function of the GA must equal to 0 for the minimization. However, the GA in matlab only permit lesser or equal instead of absolute equal. As result, the minimization of my objective function does not achieve the number that I desired. Hence, any solutions for this problem?

回答(0 个)

类别

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