Skip to content

Measurement-only variable #263

Closed Answered by Scienfitz
JamesBagley asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @JamesBagley ,

What happens with discrete constaints including CustomDiscreteConstraint
After the searchspace is built form all parameter combinations you specified, we filter the entries according to all discrete constraints you provided. This means that even though you specify a CategoricalParameter with values=['A','B','C'], the searchspace will contain only entries with A if you also provided a constraint that marks B and C as invalid.
BTW you could also use a DiscreteExludeConstraint with a SubSelectionCondition in your case because its about simple filtering of values.

Why does that cause the error you're seeing
Here we have to make a distinction between NumericalDiscreteParameter

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@JamesBagley
Comment options

@AdrianSosic
Comment options

Answer selected by JamesBagley
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants