def Problem5(inPut):
x = inPut[0]
y = inPut[1]
return -x * math.sin(4 * x)-1.1*y*math.sin(2*y)+1
def Constrain(inPut):
x = inPut[0]
y = inPut[1]
return (x + y <= 22)
ParticleSwarmOptimization(8, 10, 10, 13, 3, 0.5, 1, 2, 2, 10, Problem5, Constrain).doRun()
-
Notifications
You must be signed in to change notification settings - Fork 0
Using Particle Swarm Optimization Algorithm to find the maximize solution of the following problem Maximizeπ(π₯,π¦)=βπ₯π ππ(4π₯)β1.1π¦π ππ(2π¦)+1 8β€xβ€10; 10β€yβ€13; x+yβ€22 Expect to get maximum 23.0063 at (x,y)=(9.039,11.802)
jasonma1127/ParticleSwarmOptimization
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Β | Β | |||
Β | Β | |||
Repository files navigation
About
Using Particle Swarm Optimization Algorithm to find the maximize solution of the following problem Maximizeπ(π₯,π¦)=βπ₯π ππ(4π₯)β1.1π¦π ππ(2π¦)+1 8β€xβ€10; 10β€yβ€13; x+yβ€22 Expect to get maximum 23.0063 at (x,y)=(9.039,11.802)
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published