I want that:
 function iterate_weights()
    weight1_range = 0.05:0.05:0.2
    weight2_range = 0:0.1:1.0
    weight3_range = 0.1:0.1:0.9
    
    results = DataFrame(weight1=[], weight2=[], weight3=[], global_best=DataFrame([]), global_best_value=[])
    
    for weight1 in weight1_range
        for weight2 in weight2_range
            for weight3 in weight3_range
                global_best, global_best_value = GA2(7, 100, 10, 2, 0.09, weight1,weight2,weight3,250000000,250000,1.2)
                global_best_df = DataFrame(global_best)
                push!(results, (weight1=weight1, weight2=weight2, weight3=weight3, global_best=global_best_df, global_best_value=global_best_value))
                print(results)
            end
        end
    end
    
    return results
end

# Call the iterate_weights function to get the results
results_df = iterate_weights()

to be done in multiprocessing using @everywhere or something like that.