Stefan-Endres / shgo

Simplicial Homology Global Optimization
https://stefan-endres.github.io/shgo
MIT License
44 stars 12 forks source link

How to supply a constraint for a boolean parameter? #31

Closed haimivan closed 5 years ago

haimivan commented 5 years ago

Hi,

The function I would like to optimize has (amongst others) one parameter that only allows a boolean value (so the parameter can be zero or one).

How could I set this as a constraint for shgo?

Thanks in advance!