Demos
Defining the Project object
We start by defining the Project object.
using ProjectManagement
proj = Project(
(
start=0,
finish=0,
),
[
:start => :finish,
]
)Project{NamedTuple{(:start, :finish), Tuple{Int64, Int64}}}((start = 0, finish = 0), [:start => :finish])Visualizing the PERT Chart
visualize_chart(proj; fontsize=8)
Critical Path
We can compute the critical path and it's cost using the critical_path function.
critical_path(proj)[:start, :finish] => 0.0
We can compute all the path costs using path_durations. For example we can find the critical path and near critical paths as:
path_durations(proj)[1:min(3, end)]1-element Vector{Pair{Vector{Symbol}, Float64}}:
[:start, :finish] => 0.0Sampling Durations
Using that Project object we can sample possible durations of the project. Which allows for statistical analysis of possible outcomes.
julia> using Statistics
julia> duration_samples = rand(proj, 100_000);
julia> mean(duration_samples)
0.0
julia> minimum(duration_samples)
0.0
julia> quantile(duration_samples, 0.25)
0.0
julia> median(duration_samples)
0.0
julia> quantile(duration_samples, 0.75)
0.0
julia> maximum(duration_samples)
0.0We can plot the distribution showing the probability density function for project completion duration.
density(proj)