Skip to content

Commit 63eb7b6

Browse files
committed
Add back NaNMath
1 parent b11ee87 commit 63eb7b6

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

Diff for: Project.toml

-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ repo = "https://github.com/jump-dev/JuMP.jl.git"
44
version = "1.0.0"
55

66
[deps]
7-
Calculus = "49dc2e85-a5d0-5ad3-a950-438e2897f1b9"
87
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
98
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
109
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
@@ -17,7 +16,6 @@ SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
1716
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
1817

1918
[compat]
20-
Calculus = "0.5"
2119
DataStructures = "0.18"
2220
ForwardDiff = "~0.5.0, ~0.6, ~0.7, ~0.8, ~0.9, ~0.10"
2321
JSON = "0.21"

Diff for: src/JuMP.jl

-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ Shorthand for the MathOptInterface.Bridges package.
4646
"""
4747
const MOIB = MOI.Bridges
4848

49-
import Calculus
5049
import OrderedCollections.OrderedDict
5150
import ForwardDiff
5251

Diff for: src/operators.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ end
397397
###############################################################################
398398

399399
const _OP_HINT = "Are you trying to build a nonlinear problem? Make sure you use @NLconstraint/@NLobjective."
400-
for (func, _) in Calculus.symbolic_derivatives_1arg(),
400+
for func in Nonlinear.DEFAULT_UNIVARIATE_OPERATORS[4:end],
401401
typ in [:AbstractVariableRef, :GenericAffExpr, :GenericQuadExpr]
402402

403403
if func == :abs2 && (typ == :AbstractVariableRef || typ == :GenericAffExpr)

0 commit comments

Comments
 (0)