Update of Genetic robotic drawing algorithm program

Job ID: 37450057

Budget: €30 – €250 EUR

Hello, have a nice day, I have a question/request for help, it's about doing a project where I create new robotic tools in CAD, you have to design them yourself, blah blah, but you also need to change the already existing Python genetic algorithm, it's about that the given algorithm works by creating lines from the input image, which it stores in Excel as line coordinates, and which are then used in reality through other programs for interpretation for the ABB robot, which then draws the given lines and an image is created from that input. The meaning of the change I am requesting is that now the algorithm has one N number of lines that it draws, let's say that there are 10k of them and it has a line thickness in the settings. There is a while loop in the code until it reaches N=10k, so it searches for those 10k lines, and the meaning of the change, what I would need is that since there will be two new tools that have a larger and smaller line width, divide the code so that I enter N1= for example 1000 lines , N2 (the new thick one) for example also N2=1000 and then N3 and also some number (N3=1000). so, basically, the point is to split the loop so that there are three loops and the code knows how to count the number of lines for one thickness, then for smaller and smaller ones.... I hope I wrote it understandably ?, and hey, this data is saved in an Excel cvs file, so also change it so that the data is stored under each other and there was, for example, a new column that at the N1 line there would be some echo that N1 and for example on the 1001 line we would already have N2...could you please help me with something like this?
It's almost as if the code is already done, it also works functionally with the one N, it's a change of code (N1-N3), not all over again, if I wrote stupidly ?and my goal is to both add new features to the algorithm and optimize the existing code.

The complexity of the new features I'm looking for would be around moderate, meaning more than simple enhancements but not quite as complex as high complexity. If you have the skills and experience to help with this task, I would love to hear from you.