[Bug] [relatively easy fix] gen_one_shot_kg_initial_conditions
should error when provided inter-point constraints
#1851
Labels
gen_one_shot_kg_initial_conditions
should error when provided inter-point constraints
#1851
🐛 Bug
See #1220 for context.
optimize_acqf
does not support inter-point constraints -- those whoseindices
are two-dimensional -- when the acquisition function isqKnowledgeGradient
. This is becausegen_one_shot_kg_initial_conditions
does not support inter-point constraints. Since typing constraints correctly is confusing, BoTorch should raise an informative error rather than leaving the user to get a confusingIndexError
and wonder if they typed the constraints wrong :)To reproduce
** Stack trace/error message **
Expected Behavior
An informative error should be raised explaining that this is not supported. I think the fix here is that
gen_one_shot_kg_initial_conditions
should raise anUnsupportedError
orNotImplementedError
if provided inter-point constraints. However, I'm not 100% sure thatgen_one_shot_kg_initial_conditions
is the right place for the error, so whoever fixes this should carefully verify that the error is accurate and that usages that don't trigger the error do work.The text was updated successfully, but these errors were encountered: