How to use the gekko.Brain function in gekko

To help you get started, we’ve selected a few gekko examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github BYU-PRISM / GEKKO / examples / View on Github external
def build_brains():
    ## Explicit network solutions
    ## Implicit network solutions
    b2 = Brain(remote=False,bfgs=bfgs,explicit=explicit)
    #input layer
    #intermediate layers
    #output layer
    # extra options for this problem
    for l in b2._weights:
        for f in l:
            f.DMAX= dmax
    return b2