dwave.cloud.solver.NLSolver.sample_nlm#

NLSolver.sample_nlm(model: dwave.optimization.Model | IOBase | str, label: str | None = None, upload_params: dict | None = None, **sample_params) Future[source]#

Sample from the specified NL model.

Parameters:
  • model (Model/bytes/str) – A nonlinear model, serialized model, or a reference to uploaded model (Problem ID returned by .upload_nlm method).

  • label (str, optional) – Problem label you can optionally tag submissions with for ease of identification.

  • upload_params (dict) – Model encoding and upload parameters, for example parameters passed down to :meth:~dwave.optimization.model.Model.to_file, like max_num_states.

  • **sample_params – Sampling parameters, solver-specific.

Returns:

Future

Note

To use this method, dwave-optimization package has to be installed.