Installation
Install from GitHub
Add MOProblems.jl to the active Julia environment directly from its GitHub repository:
The installation commands below are illustrative: they modify the active environment or use a placeholder path.
import Pkg
Pkg.add(url = "https://github.com/VectorOptimizationGroup/MOProblems.jl")Using a project-specific environment is recommended so that the package version is recorded alongside the rest of the project's dependencies. See the Julia Pkg documentation for environment creation and activation.
Install from a local checkout
Clone the repository when you need a local copy of the source:
git clone https://github.com/VectorOptimizationGroup/MOProblems.jl.gitTo install that checkout into the active Julia environment, provide its local path:
import Pkg
Pkg.add(path = "/absolute/path/to/MOProblems.jl")Use Pkg.develop(path = ...) instead when local source edits should be visible immediately from the active environment.
Verify the installation
julia> using MOProblems
julia> using Random
julia> prob = ZDT1();
julia> lower, upper = recommended_bounds(prob);
julia> rng = MersenneTwister(1234);
julia> α = rand(rng, prob.nvar);
julia> x = lower .+ α .* (upper .- lower);
julia> values = eval_f(prob, x);
julia> length(values)
2Continue with the Quick Start for the main construction, evaluation, and catalog workflow.