Skip to content

Commit

Permalink
Add LBFGS code
Browse files Browse the repository at this point in the history
Port of MRST code originally written by Stein. Port was done by Junjian with some cleanup by Olav, licensed under MIT in agreement with all contributors.

Co-Authored-By: Stein Krogstad <stein.krogstad@sintef.no>
Co-Authored-By: JUNJIAN-LI-CUPB <153202025+junjian-li-cupb@users.noreply.github.com>
  • Loading branch information
3 people committed Nov 19, 2024
1 parent 1bfe36b commit bdccd2c
Show file tree
Hide file tree
Showing 5 changed files with 814 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Jutul.jl
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,9 @@ module Jutul
# Nonlinear finite-volume discretizations
include("NFVM/NFVM.jl")

# LBFGS suitable for PDE optimization
include("LBFGS/LBFGS.jl")
using .LBFGS
import .LBFGS: unit_box_bfgs

end # module
7 changes: 7 additions & 0 deletions src/LBFGS/LBFGS.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module LBFGS
export unit_box_bfgs
using Printf, SparseArrays, Polynomials, LinearAlgebra
include("types.jl")
include("limited_memory_hessian.jl")
include("constrained_optimizer.jl")
end
Loading

0 comments on commit bdccd2c

Please sign in to comment.