×
BigML is working hard to support a wide range of browsers. Your experience will be better with:
English
Sign up / in
Sign up
Sign in
or Sign in with...
Amazon
Github
GitLab
Google
Toggle navigation
PRODUCT
Features
Releases
What's New
GETTING STARTED
PRICING
Subscriptions
Private Deployments
Training
Certifications
BigML for Education
SUPPORT
Toggle navigation
PRODUCT
Features
Releases
What's New
GETTING STARTED
PRICING
Subscriptions
Private Deployments
Training
Certifications
BigML for Education
SUPPORT
License
Oops!
We could not process your request!
Branin optimization | BigML.com
×
Embed this Script in your web site
Copy & Paste this code into your HTML code:
whizzml
Public
whizzml's
Scripts
77
Models
0
Datasets
0
0
FREE
BUY
Branin optimization
Details:
Created
Thu, 8 Oct 2026 15:00:35 +0000
Published
Thu, 8 Oct 2026 17:26:18 +0000
Description:
Find extrema of Branin using SMACdown
Tags:
BigMLer
BigMLer_ThuOct0826_170034
URL:
https://bigml.com/user/whizzml/gallery/script/6ac7b013426c2387bb0fdd57
Script
FREE
Source code
;; This file demonstrates using SMACdown to optimize a function, in ;; this case, the venerable branin function. ;; Definition of the branin function (define (branin x1 x2) (let (pi 3.14159265359 a 1 b (/ 5.1 (* 4 (pow pi 2))); c (/ 5 pi) r 6 s 10 t (/ 1 (* 8 pi))) (+ (* a (pow (+ (- x2 (* b (pow x1 2))) (- (* c x1) r)) 2)) (* s (- 1 t) (cos x1)) s))) ;; This function generates random parameters to the branin function in ;; the proper range. (define (branin-generator) {"x1" (rand-range -5 10) "x2" (rand-range 0 15)}) ;; This function takes a list of parameter maps of the format ;; generated above and returns a list of values, where each value in ;; the list is the value of applying the function to be optimized to ;; the corresponding parameters in the input list. (define (branin-evaluator params ignored) (map (lambda (p) (branin (get p "x1") (get p "x2"))) params)) (define result (smacdown-optimize branin-generator branin-evaluator "test")) ;; We delete all intermediate resources (there will be a lot), since ;; we are interested only in the final result. (delete* (created-resources))
Description
Find extrema of Branin using SMACdown
Find extrema of Branin using SMACdown
Show more
Inputs
There are no inputs in this script
Outputs
License:
Creative Commons Zero V1.0
Script
FREE
Branin optimization | BigML.com
Sending Request...
Sending Request...