-
Notifications
You must be signed in to change notification settings - Fork 67
/
NLsolve.jl
47 lines (39 loc) · 1.06 KB
/
NLsolve.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
VERSION >= v"0.4.0-dev+6521" && __precompile__()
module NLsolve
using Distances
using Optim
using ForwardDiff
using Compat
import Compat.view
import Compat.String
import Base.show,
Base.push!,
Base.getindex,
Base.setindex!
import Calculus.finite_difference_jacobian!
export DifferentiableMultivariateFunction,
only_f!_and_fg!,
only_fg!,
not_in_place,
n_ary,
DifferentiableSparseMultivariateFunction,
DifferentiableGivenSparseMultivariateFunction,
nlsolve,
mcpsolve,
converged
type IsFiniteException <: Exception
indices::Vector{Int}
end
show(io::IO, e::IsFiniteException) = print(io,
"During the resolution of the non-linear system, the evaluation" *
" of the following equation(s) resulted in a non-finite number: $(e.indices)")
include("differentiable_functions.jl")
include("solver_state_results.jl")
include("nlsolve_func_defs.jl")
include("mcp_func_defs.jl")
include("utils.jl")
include("newton.jl")
include("trust_region.jl")
include("autodiff.jl")
include("mcp.jl")
end # module