This code base is using the Julia Language and DrWatson to make a reproducible scientific project named
SimpleLoop_proximity
Authors: Andreas Heuermann
To (locally) reproduce this project, do the following:
-
Make sure you have local Julia package NaiveONNX in ../NaiveONNX.jl. If not update your git submodule with
$ git submodule update --force --init --recursive
-
Open a Julia console and run:
julia> using Pkg julia> Pkg.add("DrWatson") # install globally, for using `quickactivate` julia> Pkg.activate("examples/SimpleLoop_proximity/") julia> Pkg.instantiate()
-
OpenModelica: Tested omc version v1.21.0-dev-288-g01b6764df5-cmake with OMSimulator version OMSimulator v2.1.1.post194-g75de4c6-linux-debug.
This will install all necessary packages for you to be able to run the scripts and everything should work out of the box, including correctly finding local paths.
You may notice that most scripts start with the commands:
using DrWatson
@quickactivate "SimpleLoop"
which auto-activate the project and enable local path handling from DrWatson.
The SimpleLoop example has one small loop with two unknowns and one iteration variable. Proximity data is used to resolve ambiguities in the intersection points between circle and line.
Run script scripts/runAll.jl to run the example.
Change N
to specify how many data points should be generated.
julia> include("scripts/runAll.jl")