Git Product home page Git Product logo

bcap's Introduction

BCAP

Configure an algorithm.

Installation

Julia 1.0 or Later

Open the Julia REPL and press ] to open the Pkg prompt. To add this package, use the add command:

pkg> add https://github.com/jmejia8/BCAP.git

Quick Start

using BCAP

target_algorithm(Φ, instance, seed = 0) = begin

    # some instances solved so easy
    if instance.index % 3 == 0
        v = rand()
    else
        # Stochastic sphere function
        v = (instance.index-1)*(sum( abs.(Φ .- (0:length(Φ)-1) )  ) + 0.5rand())
    end

    # if close to the optimum put 0
    return v <= instance.optimum ? 0.0 : v
end

bounds = Array([ zeros(5) 10ones(5) ]')
parameters = Parameters(bounds, [Bool, Int, Float64, Int, Float64 ])

benchmark = [Instance(0.5i, nothing, i) for i = 1:10]

res = configure(target_algorithm, parameters, benchmark, debug = false )

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.