Skip to content

Commit cb8bd90

Browse files
committed
Depreacte old names.
1 parent 4a226b7 commit cb8bd90

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/Optim.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ module Optim
1717
Base.setindex!
1818

1919
export optimize,
20+
NonDifferentiableFunction,
21+
OnceDifferentiableFunction,
22+
TwiceDifferentiableFunction,
23+
NonDifferentiable,
2024
OnceDifferentiable,
2125
TwiceDifferentiable,
2226
OptimizationOptions,

src/deprecate.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,7 @@ function get_neighbor(neighbor!, neighbor)
7373
end
7474
neighbor
7575
end
76+
77+
@deprecate NonDifferentiableFunction(args...) NonDifferentiable(args)
78+
@deprecate DifferentiableFunction(args...) Differentiable(args)
79+
@deprecate TwiceDifferentiableFunction(args...) TwiceDifferentiable(args)

0 commit comments

Comments
 (0)