עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

אלגוקיתם גנטי פשוט ב-C#. זקוק לעזרה

Featured Replies

פורסם

היי אנשים.

אני כותב אלגוריתם שמוצג במדריך הזה:

http://www.ai-junkie.com/ga/intro/gat1.html

בתכלס הוא אמור למצוא רצף מספרים ופעולות(בינהם) שמניב תוצאה מתבקשת(אני החלטתי על 22).

זה לא עובד, יש לי מושג למה זה לא עובד אבל לא איך לתקן את זה.

מה שנראה לי זה שהוא רצף נכון אבל ממשיך(כי הtotal fitness יוצא NAN), כלומר יש אחד שיש לו fitness איןסופי שנמצא שם באמצע ומפריע(הוא מתקבל ע"י חילוק ב-0).

נקטתי אמצעים לנסות למנוע את זה אבל לא הצלחתי, ואין לי מושג למה.

אשמח להצעות ייעול שיפור וכו'

מצורף הפרוייקט (C#)(Visual studio 05)

[attachment deleted by admin]

פורסם

מזמן לא נגעתי באלגוריתמים גנטיים, אבל לדעתי תנסה לשחק קצת עם ה CROSSOVER RATE ו MUTATION RATE, גם עד כמה שאני יודע זה לא מדע מדויק אז ככה שהסיכוי שתקבל תוצאה מדוייקת לא תמיד גבוה.

פורסם
  • מחבר

ממ נו טוב.

ננסה.

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.