Skip to content

Installation of Julia

MaartenHilferink edited this page Sep 10, 2026 · 6 revisions

Installation of Julia

These steps have been tested with Julia 1.12.5 on Windows (x64).
For the latest version, see https://julialang.org/downloads/.

1. Install Julia

Open a Command Prompt and run:

winget install --name Julia --id 9NJNWW8PVKMN -e -s msstore

2. Install required packages

Start Julia:

julia

Then at the julia> prompt, install the required packages:

import Pkg
Pkg.add("Arrow")
Pkg.add("JuMP")
Pkg.add("HiGHS")
Package Purpose
Arrow Reading and writing .arrow data files produced by GeoDMS
JuMP Algebraic modelling interface for optimisation problems
HiGHS LP and MIP solver (used via JuMP)

Exit Julia with Ctrl-D.

3. Run a solver script

From the command line:

set TRAVEL_FUNC=LINEAR
set COUNTRIES=Netherlands
julia lambda_sweep_simplex.jl

lambda_sweep_simplex.jl is the pharmacy λ-sweep driver on the ServiceAccess branch; the scripts are controlled by environment variables (COUNTRIES, TRAVEL_FUNC, …) listed with their defaults in settings.jl. See Pharmacy service access for the available scripts and the full workflow, and Service allocation procedure for the older school-era runners (lp.jl, greedy.jl). Random and LinearAlgebra, which the scripts also use, ship with Julia.

4. Input and output files

The scripts read the Arrow files under C:\LocalData\networkmodel_eu\<ANALYSIS>\ (ANALYSIS = ExistingPharmacies or NewPharmacies; paths in settings.jl), one set per study area named by COUNTRIES. The Arrow files are generated by GeoDMS — see Pharmacy service access for the pipeline that produces them and the files the sweep writes back.

Clone this wiki locally