Solve the provided model and return the result.
|The model to solve.|
|The parameters to use for solving.|
|The stream to which the solver output (log, trace and warnings) should be redirected. When undefined then the output is ignored.|
The result of the solve.
This function is asynchronous and returns a promise. Use e.g.
await to wait
for the result. When an error occurs then the returned promise is rejected
Error object is returned.
To communicate asynchronously with the solver, e.g. process every solution found, use class Solver instead.
For an example of using this function see Model.