A Genetic Algorithm to Model Solar Radio Active Regions From 3D Magnetic Field Extrapolations