You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix SBX prob_bin parameter to control parent exchange probability
- Preserve parent identity during SBX crossover calculations
- Make prob_bin represent probability of parent value exchange
- Ensure Child 1 inherits from Parent 1 when prob_bin=0.0
- Use cleaner np.where syntax for child assignment and exchange
With this fix:
- prob_bin=0.0: Child1←Parent1, Child2←Parent2 (no exchange)
- prob_bin=0.25: 25% chance of exchange (Child1←Parent2, Child2←Parent1)
- prob_bin=0.5: 50% chance of exchange (equivalent to old behavior)
- prob_bin=1.0: Always exchange (Child1←Parent2, Child2←Parent1)
Addresses #673
0 commit comments