-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Turn off breakage until split if finalized Re-enable breakage tests Fix Project.toml Improve tests and coverage Update README and LICENSE Improve API tests Small correction and test hess_op WIP
- Loading branch information
1 parent
d9071b0
commit d622258
Showing
77 changed files
with
812 additions
and
6,047 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,36 @@ | ||
module NLPModels | ||
|
||
using LinearAlgebra, LinearOperators, Printf, SparseArrays, FastClosures | ||
# stdlib | ||
using LinearAlgebra, Printf, SparseArrays | ||
# external | ||
using FastClosures | ||
# JSO | ||
using LinearOperators | ||
|
||
include("core/core.jl") | ||
export AbstractNLPModel, AbstractNLSModel | ||
|
||
include("autodiff_model.jl") | ||
include("autodiff_nlsmodel.jl") | ||
include("feasibility_form_nls.jl") | ||
include("feasibility_residual.jl") | ||
include("lls_model.jl") | ||
include("qn_model.jl") | ||
include("slack_model.jl") | ||
# For documentation purpose | ||
const OBJECTIVE_HESSIAN = raw""" | ||
```math | ||
σ ∇²f(x), | ||
``` | ||
with `σ = obj_weight` | ||
""" | ||
const LAGRANGIAN_HESSIAN = raw""" | ||
```math | ||
∇²L(x,y) = σ ∇²f(x) + \sum_i yᵢ ∇²cᵢ(x), | ||
``` | ||
with `σ = obj_weight` | ||
""" | ||
|
||
include("model-interaction.jl") | ||
# Base type for an optimization model. | ||
abstract type AbstractNLPModel end | ||
|
||
include("dercheck.jl") | ||
abstract type AbstractNLSModel <: AbstractNLPModel end | ||
|
||
for f in ["utils", "api", "counters", "meta", "show", "tools", ] | ||
include("nlp/$f.jl") | ||
include("nls/$f.jl") | ||
end | ||
|
||
end # module |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.