def set_solver_option(net, solver_option=None):
    """
    The function to set the solver option used to solve the equations
    :param net: the pandasgaz network
    :param solver_option: the dict given by the user with custom options or none
    """
    if solver_option:
        for k in solver_option.keys():
            net.solver_option[k] = solver_option[k]
