GithubHelp home page GithubHelp logo

Comments (4)

jacktang avatar jacktang commented on June 3, 2024 1

Thanks for the explanation!

from bayesianoptimization.

till-m avatar till-m commented on June 3, 2024

Hello @jacktang,

let me rewrite the specific example from above using pseudocode:

def black_box_function_with_constraints(**kwargs):
    if not constraint_fulfilled(**kwargs):
        return BAD_VALUE
    else:
        return target_function(**kwargs)

I would encourage you to read the constraints documentation again. Other than that, If you can be more specific with your problem, I might be able to help better.

from bayesianoptimization.

jacktang avatar jacktang commented on June 3, 2024

Hello @till-m , thanks for your reply!
In my case, the black box function is evaluated by some CFD simulation software, and the constraint function is unknown, I will check the output of simulation, if the result is not completed, i suppose the constraint violented. Can the BAD_VALUE be - np.inf?

from bayesianoptimization.

till-m avatar till-m commented on June 3, 2024

Hey @jacktang,

the idea behind this approach is to discourage the optimizer from re-visiting a region that most likeli does not fulfill the constraints by registering a "bad value". Choosing -np.inf will break the GP fitting, it would be better to choose a bad, but potentially realistic value -- i.e. something slightly worse than what you've previously observed during optimization.

from bayesianoptimization.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.