set_params function

Set the parameters in a network model