All Projects → bbopt → NOMAD.jl

bbopt / NOMAD.jl

Licence: other
Julia interface to the NOMAD blackbox optimization software

Programming Languages

julia
2034 projects

Projects that are alternatives of or similar to NOMAD.jl

nomad-service-alerter
Alerting for Nomad Jobs
Stars: ✭ 37 (-2.63%)
Mutual labels:  nomad
nomad-box
Nomad Box - Simple Terraform-powered setup to Azure of clustered Consul, Nomad and Traefik Load Balancer that runs Docker/GoLang/Java workloads. NOTE: Only suitable in dev environments at the moment until I learn more Terraform, Consul, Nomad, Vault :P
Stars: ✭ 18 (-52.63%)
Mutual labels:  nomad
microservices-demo.github.io
The Microservices Demo website.
Stars: ✭ 65 (+71.05%)
Mutual labels:  nomad
tryingtowork
A collection of free spaces to work online
Stars: ✭ 78 (+105.26%)
Mutual labels:  nomad
local-hashicorp-stack
Local Hashicorp Stack for DevOps Development without Hypervisor or Cloud
Stars: ✭ 23 (-39.47%)
Mutual labels:  nomad
pdfo
Powell's Derivative-Free Optimization solvers
Stars: ✭ 56 (+47.37%)
Mutual labels:  blackbox-optimization
scaleway-terraform-demo
example using terraform for scaleway with nomad, consul & fabio
Stars: ✭ 52 (+36.84%)
Mutual labels:  nomad
deadman-check
Monitoring companion for Nomad periodic jobs and Cron
Stars: ✭ 49 (+28.95%)
Mutual labels:  nomad
nomadgen
Configuration util in python syntax for Hashicorp's Nomad
Stars: ✭ 19 (-50%)
Mutual labels:  nomad
offensive-infrastructure
Offensive Infrastructure with Modern Technologies
Stars: ✭ 88 (+131.58%)
Mutual labels:  nomad
humpday
Elo ratings for global black box derivative-free optimizers
Stars: ✭ 94 (+147.37%)
Mutual labels:  blackbox-optimization
chip
📦 🐳 🚀 - Smart "dummy" mock for cloud native tests
Stars: ✭ 19 (-50%)
Mutual labels:  nomad
tfc-agent
Examples related to the Terraform Cloud Agent, a remote runner for Terraform Cloud Business and Terraform Enterprise
Stars: ✭ 44 (+15.79%)
Mutual labels:  nomad
open-box
Generalized and Efficient Blackbox Optimization System.
Stars: ✭ 64 (+68.42%)
Mutual labels:  blackbox-optimization
damon
Supervisor program to constrain Windows executables running under Nomad's raw_exec driver
Stars: ✭ 83 (+118.42%)
Mutual labels:  nomad
hashicorp-labs
Deploy locally on VM an Hashicorp cluster formed by Vault, Consul and Nomad. Ready for deploying and testing your apps.
Stars: ✭ 32 (-15.79%)
Mutual labels:  nomad
hashi-homelab
Hashicorp Homelab is a collection of nomad recipes related to several Open Source projects that I use on my own nomad + consul + vault + Intel Nuc cluster.
Stars: ✭ 178 (+368.42%)
Mutual labels:  nomad
100 Days Of Go
100 days of Go learning
Stars: ✭ 24 (-36.84%)
Mutual labels:  nomad
maggy
Distribution transparent Machine Learning experiments on Apache Spark
Stars: ✭ 83 (+118.42%)
Mutual labels:  blackbox-optimization
damon
A terminal UI (TUI) for HashiCorp Nomad
Stars: ✭ 274 (+621.05%)
Mutual labels:  nomad

NOMAD.jl

Documentation Build Status Coverage DOI
Coverage Status DOI

This package provides a Julia interface for NOMAD, which is a C++ implementation of the Mesh Adaptive Direct Search algorithm (MADS), designed for difficult blackbox optimization problems. These problems occur when the functions defining the objective and constraints are the result of costly computer simulations.

How to Cite

If you use NOMAD.jl in your work, please cite using the format given in CITATION.bib.

Installation

NOMAD can be installed and tested through the Julia package manager:

julia> ]
pkg> add NOMAD
pkg> test NOMAD

Quick start

Let's say you want to minimize some objective function :

function f(x)
  return x[1]^2 + x[2]^2
end

while keeping some constraint inferior to 0 :

function c(x)
  return 1 - x[1]
end

You first need to declare a function eval_fct(x::Vector{Float64}) that returns a Vector{Float64} containing the objective function and the constraint evaluated for x, along with two booleans.

function eval_fct(x)
  bb_outputs = [f(x), c(x)]
  success = true
  count_eval = true
  return (success, count_eval, bb_outputs)
end

success is a boolean set to false if the evaluation should not be taken into account by NOMAD. Here, every evaluation will be considered as a success. count_eval is also a boolean, it decides weather the evaluation's counter will be incremented. Here, it is always equal to true so every evaluation will be counted.

Then, create an object of type NomadProblem that will contain settings for the optimization.

The classic constructor takes as arguments the initial point x0 and the types of the outputs contained in bb_outputs (as a Vector{String}).

pb = NomadProblem(2, # number of inputs of the blackbox
                  2, # number of outputs of the blackbox
                  ["OBJ", "EB"], # type of outputs of the blackbox
                  eval_fct;
                  lower_bound=[-5.0, -5.0],
                  upper_bound=[5.0, 5.0])

Here, first element of bb_outputs is the objective function (f(x)), second is a constraint treated with the Extreme Barrier method (c(x)). In this example, lower and upper bounds have been added but it is not compulsory.

Now call the function solve(p::NomadProblem, x0::Vector{Float64}) where x0 is the initial starting point to launch a NOMAD optimization process.

result = solve(pb, [3.0, 3.0])

The object returned by solve() contains information about the run.

Custom Installation

Note: NOMAD is already precompiled with Yggdrasil for all platforms.

To use your custom NOMAD, set the environmental variables JULIA_NOMAD_LIBRARY_PATH to point the shared library. Note that NOMAD version 4.2.0 is needed.

For example:

ENV["JULIA_NOMAD_LIBRARY_PATH"] = "~/Applications/nomad-4.2.0/build/lib"
using NOMAD

Alternatively, you can create an entry in .julia/config/startup.jl or set these permanently through your operating system.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].