solve_root

despasito.utils.general_toolbox.solve_root

solve_root(func, args=(), method='bisect', x0=None, bounds=None, options={})[source]

This function will setup and dispatch thermodynamic jobs.

Parameters:
  • func (function) – Function used in job. Can be any of the following scipy methods: “brent”, “least_squares”, “TNC”, “L-BFGS-B”, “SLSQP”, ‘hybr’, ‘lm’, ‘linearmixing’, ‘diagbroyden’, ‘excitingmixing’, ‘krylov’, ‘df-sane’, ‘anderson’, ‘hybr_broyden1’, ‘hybr_broyden2’, ‘broyden1’, ‘broyden2’, ‘bisect’.

  • args (tuple, Optional, default=()) – Each entry of this list contains the input arguments for each job

  • method (str, Optional, default=”bisect”) – Choose the method used to solve the dew point calculation

  • x0 (float, Optional, default=None) – Initial guess in parameter to be optimized

  • bounds (tuple, Optional, default=None) – Parameter boundaries

  • options (dict, Optional, default={}) – These options are used in the scipy method

Returns:

output – This structure contains the outputs of the jobs given

Return type:

tuple