wntr.sim.solvers module

class wntr.sim.solvers.SolverStatus(value)[source]

Bases: enum.IntEnum

An enumeration.

class wntr.sim.solvers.NewtonSolver(options=None)[source]

Bases: object

Newton Solver class.

solve(model)[source]
Parameters

model (wntr.aml.Model) –

Returns

  • status (SolverStatus)

  • message (str)