Implement a more robust way to determine which solver_parameter structure is to be used