started writing the code to optimize the regularization parameters for
the multimode simulation too.