Skip to content

Commit 469c189

Browse files
committed
Update
1 parent 5b0daae commit 469c189

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Nonlinear/SymbolicAD/SymbolicAD.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1509,7 +1509,7 @@ end
15091509
# A default fallback for all types
15101510
_add_to_affine!(::Any, ::Any, ::T) where {T} = nothing
15111511

1512-
# The creation of `ret::MOI.ScalarAffineFunction` has been delayed until now!
1512+
# The creation of `ret::MOI.ScalarAffineFunction` has been delayed until now.
15131513
function _add_to_affine!(
15141514
::Nothing,
15151515
f::Union{Real,MOI.VariableIndex,MOI.ScalarAffineFunction},

test/Nonlinear/SymbolicAD.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -720,9 +720,9 @@ function test_simplify_if_affine()
720720
op(:+, x, x)=>2.0*x,
721721
op(:+, x, 2, x)=>2.0*x+2.0,
722722
op(:+, x, 2, op(:+, x))=>2.0*x+2.0,
723-
op(:+, 1.0*x, 1.0*x+2.0)=>2.0*x+2.0,
724-
op(:-, 1.0*x+2.0)=>-1.0*x-2.0,
725-
op(:*, 2, 1.0*x+2.0, 3)=>6.0*x+12.0,
723+
op(:+, 1.0 * x, 1.0 * x + 2.0)=>2.0*x+2.0,
724+
op(:-, 1.0 * x + 2.0)=>-1.0*x-2.0,
725+
op(:*, 2, 1.0 * x + 2.0, 3)=>6.0*x+12.0,
726726
# Early termination because not affine
727727
op(:+, op(:sin, x))=>nothing,
728728
op(:-, op(:sin, x))=>nothing,

0 commit comments

Comments
 (0)