Please be sure to read the whole project description, and follow all instructions, before bidding.
The URL for this project is: [url removed, login to view]
This site loads data (NBA player statistics) from a CSV into an array. The algorithm then sorts the array, calculates player combinations and then returns the 8 best possible lineups.
If you upload the first attached file ([url removed, login to view]) you will see the data load into the array. If you then press the "optimize" button, you will see the algorithm return results in the 8 tabs at the top of the page. This is the expected and the correct result.
If you then try the same thing using the 2nd attached file ([url removed, login to view]) you will see that the data does load correctly into the array. However, when you press "optimize" to run the algorithm, you will see the following error message, "There are no possible lineups for draftkings using the players that you selected". To confirm that you have read and understood the job so far, please use the word Tequila at the top of your quote/proposal. Any quotes/proposals that do not include this word will be ignored.
After some troubleshooting on my end, I noticed a few things that seem to consistently cause the error to occur. These *may* help point you in the correct direction to help find a fix:
1) It seems that the algorithm works consistently when the original csv includes a large number of players. As soon as the number of players in the original upload csv drops below X, the algorithm gives the error.
2) You will notice that on the webpage, next to the players in the array, that there are 3 radio button options: "Allow," "Pick" and "Ban". Allow, if set (or if blank with no other buttons selected, tells the algorithm that the players is available to be used in the end results. "Pick", if set, *requires* the algorithm to include that player in all returned results and "Ban" forces the algorithm to exclude that player from all possible results. To confirm that you have read this far and understand, include the word Bourbon in your quote/proposal. Whenever the "Pick" option is selected, the algorithm gives the same error. These issues may be related.
Your job, should you choose to accept it, is to make sure that the algorithm returns results correctly with all uploaded csv data sets, and that the "pick" radio button option functions correctly.
11 freelancers are bidding on average $28 for this job
Hello, if you send me your php code I can take a look immediately. Relevant Skills and Experience I have more than 20 years experience in programming. Proposed Milestones $25 USD - Problem solved