More about ic_generator and batch_initial_conditions #1885
Replies: 2 comments 5 replies
-
This depends on the nature of the constraints. Maybe in some cases, but maybe not in others. This is going to be specific to the problem and not really something that we can handle in all generality on the botorch end. We just need the
What are the constraints you have on your parameters? That will dictate how to generate the initial conditions for optimization. |
Beta Was this translation helpful? Give feedback.
-
You shouldn't make the constraints discontinuous, this will make it hard for the optimizer. See my comment on the issue you referenced: #1783 (comment) As to the error - my suspicion is that in this block in your code you're passing
Generally, it's hard to tell what is going on without a full stack trace - can you please share those in future issues? |
Beta Was this translation helpful? Give feedback.
-
This may be considered as a continuation of the discussion from #1783 .
I have a few questions about the use of
ic_generator
andbatch_initial_conditions
that have to be used in addition to the nonlinear inequality constraint.I took a look at the code in Scipy non-linear inequality constraints.ipynb.txt. Here, the
get_batch_initial_conditions
function invokes another function that generates a Sobol sequence.I see that the dataset is initialized with 10 points generated using the
get_feasible_sobol_points
function (y-values calculated using the hartmann function). This data is then fed to a for loop where, for every iteration, the model is retrained and the acquisition function is optimized with the nonlinear inequality constraint and the initial conditions passed as arguments in theoptimize_acqf
function. And the generation of new points from the BO happens in an iterative process.Firstly, is this iterative method the only way to generate new points? Is generating Sobol points necessary always? Is there an equivalent method to impose the nonlinear inequality constraints in one shot as there is for linear inequality constraints?
Secondly, I would like to know how the ic_generator works. Can you let me know how they are different from the
batch_initial_conditions
. I see that the docs don't mention much beyond the fact that itJust providing additional context, in case it helps: the data I work with is fully from experimental measurements. How do I generate initial conditions in my case?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions