| Ai :: PSO. ÆÄƼŬ ¶¼¸¦ ½ÇÇàÇϱâÀ§ÇÑ ¸ðµâ ÃÖÀûÈ ¾Ë°í¸®Áò |
Áö±Ý ´Ù¿î·Îµå |
Ai :: PSO. ¼øÀ§ ¹× ¿ä¾à
- °Ô½ÃÀÚ À̸§:
- Kyle Schlansker
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~kylesch/
Ai :: PSO. ű×
Ai :: PSO. ¼³¸í
Particle Swarm Optimization ¾Ë°í¸®ÁòÀ» ½ÇÇàÇϱâÀ§ÇÑ ¸ðµâ AI :: PSO´Â ÀÔÀÚ ¶¼ ÃÖÀûÈ algorithmÀ» ½ÇÇàÇϱâÀ§ÇÑ Perl ¸ðµâÀÔ´Ï´Ù. ½Ä ³ëÇÁ°¡ AI :: PSO; my % params = (numparticles => 4, # °Ë»ö¿¡ °ü·ÃµÈ ÀÔÀÚÀÇ ÃÑ ÀÔÀÚ ¼ö => 3, # °¢ ÀÔÀÚ°¡ ±× ÁøÇà·ü maxiterations => 1000, # ¼Ö·ç¼ÇÀ» Á¾·áÇϱâ Àü¿¡ ÃÖ´ë ¹Ýº¹ Ƚ¼ö) ¹ß°ß µÈ Ä¡¼ö => 4, # µ¨Å¸¹Î => -4.0, # ÃÖ¼ÒÇÑÀÇ ¸Å°³ º¯¼ö ¼ö PSO ¾÷µ¥ÀÌÆ® Áß ¼ÓµµÀÇ ÃÖ¼Ò º¯È deltamax => 4.0, # ÃÖ´ë ¼ÓµµÀÇ ¼Óµµ º¯È meweight => 2.0, # '°³¼º' °¡ÁßÄ¡ (´õ ³ôÀº °³¼º ´õ ³ôÀº ÀǹÌ) memin => 0.0, # '°³¼º'ÃÖ¼Ò ¹«°Ô ¹«°Ô memax => 1.0, # '°³¼º'ÃÖ´ë ¹«ÀÛÀ§ üÁß => 2.0, # '»çȸÀû'°¡Áß »ó¼ö (´õ ³ôÀº ÀÇ¹Ì ½ÅŹ ±×·ì ´õ ³ôÀº ÀǹÌ) themmin => 0.0, # 'social'ÃÖ¼Ò ¹«ÀÛÀ§ ¹«°Ô themmax => 1.0, # 'social'ÃÖ´ë ¹«ÀÛÀ§ üÁß Exitfitness => 0.9, # verbose => 0, # 0À» Á¾·áÇϱâ Àü¿¡ ´Þ¼ºÇϱâ À§ÇØ ÃÖ¼ÒÇÑÀÇ ÇÇÆ®´Ï½º ¼Ö·ç¼Ç # 1 Àμ⹰ # 1 Àμâ (y) | n) : ÀÔÀÚ : °¢ ¹Ýº¹ÀÇ ÀûÇÕ¼º # 2 °¢ ÆÄƼŬ ´ýÇÁ e (+1) psoRandomrange => 4.0, # ¼³Á¤ÇÏ¸é ¿ø·¡ÀÇ PSO ¾Ë°í¸®Áò°ú # ¶ÇÇÑ ³ªÁß¿¡ Me * / the * ¸Å°³ º¯¼ö¸¦ ¹«½ÃÇÒ ¼ö ÀÖ½À´Ï´Ù. sub custom_fitness_function (@Input) {# ÀÌ°ÍÀº Äݹé ÇÔ¼öÀÔ´Ï´Ù. # @InputÀÌ Àü´Þ µÉ °ÍÀÌ°í, ´ç½ÅÀº ±×°ÍÀ» ¼³Á¤ÇÏ´Â °Í¿¡ ´ëÇØ °ÆÁ¤ÇÒ ÇÊ¿ä°¡ ¾ø½À´Ï´Ù ... # ... floats ¹è¿ ÀÎ @InputÀ¸·Î ¹«¾ð°¡¸¦ÇϽʽÿÀ # 0, 0, 1]¿¡¼ °ªÀ» ¹ÝȯÇÕ´Ï´Ù. Ã־ǰú 1Àº ÃÖ°í} pso_set_params (\ % params); pso_register_fitness_function ( 'custom_fitness_function'); pso_optimize (); ³» @solutionarray = pso_get_solution_array (); ¿ä±¸ »çÇ× : ¡¤ Perl.
Ai :: PSO. °ü·Ã ¼ÒÇÁÆ®¿þ¾î