title: printing results of solution of a genetic algorithm
body: <p>I am setting up this function, which needs inputs of other functions to be executed. Here is my code:</p>
  <p>I want to run print_function(genetic_solution)</p>
  <pre><code>def print_function(solution):       # why is my function not changing parameters ????
    
    workerOrderArray(solution)    #returns R1, R2, R3
    
    workerOrderDaysarray(R1, R2, R3) #returns R1_days, R2_days, R3_days
    
    assignSchedule(R1, R1_days)    #returns R1_schedule
    assignSchedule(R2, R2_days)     #returns R2_schedule
    assignSchedule(R3, R3_days)    #returns R3_schedule
    
    schedules= [R1_schedule, R2_schedule, R3_schedule]
  
    for i in schedules:
      print(i)
  
    return
  </code></pre>
  <p>now the &quot;genetic solution&quot; is the solution i get from a genetic algorithm which is lengthy to define here. But should be a different solution than initially defined.. The initial solution defined is called &quot;solution&quot;</p>
  <p>each function inside saves a global variable and that variable is input to next function...</p>
  <p>Now what i dont understand is this: This function seems to use initial value of all parameters (from &quot;solution&quot; and not the new values returned from the &quot;genetic_solution&quot;).</p>
  <p>Is there something I am missing in my code?</p>
  <p>Thanks!</p>