I have been facing some weird problem. I am copying my output for each generation here:
My candidate solution is a Map<String, List<String>> with key being the driver and List being the list of strings of jobs that need to be completed. I am trying to minimize the weighted total time to cover all the locations to pickup or deliver all the jobs. If you see below, Generation 6 and 7 are exactly same but the weighted score is increased from 1.2878866772402855 to 1.2904243457573354. This makes no sense to me as they both are exactly same. The weighted total time should stay the same or go down with each generation, but definitely not increase. I understand this might be too little info to fully understand what's going on, but thought of throwing it out there and see if anybody else faced the same problem.
Thanks,
Vikas
==========================================================
Generation 0: {DB10=[J9P, J9D], DB11=[J16P, J16D], DC3=[J10P, J10D], DS13=[J1P, J1D], DC12=[J3P, J3D, J7P, J7D], DS5=[J2P, J2D, J5P, J5D], DC17=[J8P, J8D, J12P, J12D, J13P, J13D], DS3=[J15P, J15D], DC7=[J14P, J14D], DB13=[J11P, J11D], DA2=[J6P, J6D], DS4=[J4P, J4D]}: 1.491316510705789 weighted_score
Generation 1: {DE3=[J6P, J6D], DB7=[J16P, J16D], DS7=[J2P, J2D], DB11=[J9P, J9D], DC2=[J14P, J14D, J15P, J15D, J1P, J1D], DC14=[J7P, J7D], DC16=[J4P, J4D, J8P, J8D], DS6=[J10P, J10D], DS3=[J5P, J5D, J12P, J12D], DC8=[J3P, J3D, J13P, J13D], DB5=[J11P, J11D]}: 1.4311559159397305 weighted_score
Generation 2: {DB11=[J16P, J16D], DS16=[J2P, J2D], DB12=[J9P, J9D], DC3=[J1P, J1D, J14P, J14D], DE14=[J6P, J6D], DC12=[J3P, J3D, J7P, J7D, J10P, J10D], DS5=[J5P, J5D], DC17=[J8P, J8D, J12P, J12D, J13P, J13D], DS3=[J15P, J15D], DB13=[J11P, J11D], DS4=[J4P, J4D]}: 1.376675344964314 weighted_score
Generation 3: {DB11=[J16P, J16D], DS16=[J2P, J2D], DB12=[J9P, J9D], DC3=[J1P, J1D, J14P, J14D], DE14=[J6P, J6D], DC12=[J3P, J3D, J7P, J7D, J10P, J10D], DS5=[J5P, J5D], DC17=[J8P, J8D, J12P, J12D, J13P, J13D], DS3=[J15P, J15D], DB13=[J11P, J11D], DS4=[J4P, J4D]}: 1.3776269706582078 weighted_score
Generation 4: {DB11=[J16P, J16D], DS16=[J2P, J2D], DB12=[J9P, J9D], DC3=[J1P, J1D, J14P, J14D], DE14=[J6P, J6D], DC12=[J3P, J3D, J7P, J7D, J10P, J10D], DS5=[J5P, J5D], DC17=[J8P, J8D, J12P, J12D, J13P, J13D], DS3=[J15P, J15D], DB13=[J11P, J11D], DS4=[J4P, J4D]}: 1.376675344964314 weighted_score
Generation 5: {DS16=[J2P, J2D], DB11=[J16P, J16D, J11P, J11D], DC3=[J1P, J1D, J14P, J14D], DB12=[J9P, J9D], DE14=[J6P, J6D], DC1=[J4P, J4D], DC12=[J3P, J3D, J7P, J7D, J10P, J10D], DS2=[J5P, J5D], DC17=[J8P, J8D, J12P, J12D, J13P, J13D], DS3=[J15P, J15D]}: 1.2878866772402855 weighted_score
Generation 6: {DS16=[J2P, J2D], DB11=[J16P, J16D, J11P, J11D], DC3=[J1P, J1D, J14P, J14D], DB12=[J9P, J9D], DE14=[J6P, J6D], DC1=[J4P, J4D], DC12=[J3P, J3D, J7P, J7D, J10P, J10D], DS2=[J5P, J5D], DC17=[J8P, J8D, J12P, J12D, J13P, J13D], DS3=[J15P, J15D]}: 1.2878866772402855 weighted_score
Generation 7: {DS16=[J2P, J2D], DB11=[J16P, J16D, J11P, J11D], DC3=[J1P, J1D, J14P, J14D], DB12=[J9P, J9D], DE14=[J6P, J6D], DC1=[J4P, J4D], DC12=[J3P, J3D, J7P, J7D, J10P, J10D], DS2=[J5P, J5D], DC17=[J8P, J8D, J12P, J12D, J13P, J13D], DS3=[J15P, J15D]}: 1.2904243457573354 weighted_score
Generation 8: {DB11=[J16P, J16D, J11P, J11D, J9P, J9D], DC3=[J1P, J1D, J14P, J14D], DS14=[J2P, J2D], DE14=[J6P, J6D], DC1=[J4P, J4D], DC12=[J3P, J3D, J7P, J7D, J10P, J10D], DS10=[J12P, J12D], DS2=[J5P, J5D], DC17=[J8P, J8D, J13P, J13D], DS3=[J15P, J15D]}: 1.2829699444885012 weighted_score
Generation 9: {DB11=[J16P, J16D, J11P, J11D], DB12=[J9P, J9D], DC3=[J1P, J1D, J14P, J14D], DE14=[J6P, J6D], DC1=[J4P, J4D], DC12=[J3P, J3D, J10P, J10D], DS2=[J5P, J5D, J2P, J2D], DC9=[J15P, J15D], DC17=[J8P, J8D, J12P, J12D, J13P, J13D], DC7=[J7P, J7D]}: 1.2666337034099922 weighted_score
=====================================================================================