dwavesystems / dwave-optimization

Enables the formulation of nonlinear models for industrial optimization problems.
https://docs.ocean.dwavesys.com/en/stable/docs_optimization/index.html#index-optimization
Apache License 2.0
7 stars 18 forks source link

Consider adding `Find` symbol or similar #139

Open arcondello opened 1 month ago

arcondello commented 1 month ago

A symbol that would return the index of the first instance of a value in an array.

See also https://github.com/dwavesystems/dwave-optimization/issues/76.

arcondello commented 1 month ago

There's also numpy.argwhere() which does something kind of similar.