Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 954 Bytes

README.md

File metadata and controls

40 lines (30 loc) · 954 Bytes

Hiop.jl

tests

This is a Julia MOI interface to the HiOp HPC nonlinear solver.

Install dependencies

First, ensure that Hiop's shared library is in LD_LIBRARY_PATH, or the environment variable JULIA_HIOP_LIBRARY_PATH is set. Then, open a Julia REPL and instantiate the environment:

pkg> dev https://github.com/exanauts/Hiop.jl

It remains to build Hiop with:

pkg> build Hiop

You are now able to load Hiop in Julia:

julia> using Hiop

Run tests

pkg> test Hiop

Using dense or sparse algebra in HiOp

# Dense algebra
model = Model(optimizer_with_attributes(Hiop.Optimizer, "algebra" => :Dense))
# Sparse algebra
model = Model(optimizer_with_attributes(Hiop.Optimizer, "algebra" => :Sparse))