Skip to content

Latest commit

 

History

History

SimpleLoop_proximity

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

SimpleLoop_proximity

This code base is using the Julia Language and DrWatson to make a reproducible scientific project named

SimpleLoop_proximity

Authors: Andreas Heuermann

Dependencies

To (locally) reproduce this project, do the following:

  1. Make sure you have local Julia package NaiveONNX in ../NaiveONNX.jl. If not update your git submodule with

    $ git submodule update --force --init --recursive
  2. 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()
  3. 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.

Run Scripts

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.

Data Generation and Training

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")