This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cd ThirdParty-HSL/ | |
| ./configure | |
| make | |
| make install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using BinaryBuilder | |
| name = "Ipopt_Spral" | |
| version = v"0.1.0" | |
| ## Sources | |
| sources = [ | |
| GitSource("https://github.com/coin-or-tools/ThirdParty-Metis.git", "48d89108b173dcf74cc7a27d0beff0eb5eedadd5"), # master | |
| GitSource("https://github.com/lanl-ansi/spral.git", "3842fffd5b16f0bf85be6f4b2832816ac4405763"), # master | |
| GitSource("https://github.com/lanl-ansi/Ipopt.git", "78a05e2b9138074682a057297b61524f7cb32b53"), # master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Example for Plots.jl http://docs.juliaplots.org/latest/#simple-is-beautiful | |
| using Plots | |
| # define the Lorenz attractor | |
| mutable struct Lorenz | |
| dt; σ; ρ; β; x; y; z | |
| end | |
| function step!(l::Lorenz) | |
| dx = l.σ*(l.y - l.x) ; l.x += l.dt * dx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using DifferentialEquations | |
| α = 1 | |
| β = 0.1 | |
| γ = 0.05 | |
| δ = 0.02 | |
| function lotka_voltera!(dx, x, p, t) | |
| dx[1] = α*x[1] - β*x[1]*x[2] | |
| dx[2] = δ*x[1]*x[2] - γ*x[2] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| year, month, day = Dates.yearmonthday(now(Dates.UTC)); hour = Dates.Hour(now(Dates.UTC)) | |
| timeNow = DateTime(year,month,day,hour) | |
| utc_start = [timeNow:Dates.Hour(1):timeNow+Dates.Hour(n-1)...] | |
| timeNow = now(Dates.UTC) | |
| utc_start = [Dates.format(value, "yyyy-m-dd HH:00:00") for value in timeNow:Dates.Hour(1):timeNow+Dates.Hour(n-1)] | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using JSON | |
| file = normpath(joinpath(@__DIR__,"..\\dsl\\historic_query.json")) | |
| dict = open(file, "r") do f | |
| dict = JSON.parse(f) | |
| end |