Skip to content

Commit 5408efb

Browse files
refactor: format
1 parent 9ff9098 commit 5408efb

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

ext/MTKInfiniteOptExt.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ function constructDefault(T::Type = Float64)
340340
A = map(T, A)
341341
α = map(T, α)
342342
c = map(T, c)
343-
343+
344344
DiffEqBase.ImplicitRKTableau(A, c, α, 5)
345345
end
346346

@@ -422,7 +422,6 @@ function _solve(prob::AbstractDynamicOptProblem, jump_solver, solver)
422422
DynamicOptSolution(model, sol, input_sol)
423423
end
424424

425-
426425
import InfiniteOpt: JuMP, GeneralVariableRef
427426

428427
for ff in [acos, log1p, acosh, log2, asin, tan, atanh, cos, log, sin, log10, sqrt]

test/initializationsystem.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,13 +1194,13 @@ end
11941194
@test integ[x] 1 / cbrt(3)
11951195
@test integ[y] 2 / cbrt(3)
11961196
@test integ.ps[p] == 1.0
1197-
@test integ.ps[q] 3 / cbrt(3) atol=1e-5
1197+
@test integ.ps[q]3 / cbrt(3) atol=1e-5
11981198
prob2 = remake(prob; u0 = [y => 3x], p = [q => 2x])
11991199
integ2 = init(prob2)
1200-
@test integ2[x] cbrt(3 / 28) atol=1e-5
1201-
@test integ2[y] 3cbrt(3 / 28) atol=1e-5
1200+
@test integ2[x]cbrt(3 / 28) atol=1e-5
1201+
@test integ2[y]3cbrt(3 / 28) atol=1e-5
12021202
@test integ2.ps[p] == 1.0
1203-
@test integ2.ps[q] 2cbrt(3 / 28) atol=1e-5
1203+
@test integ2.ps[q]2cbrt(3 / 28) atol=1e-5
12041204
end
12051205

12061206
function test_dummy_initialization_equation(prob, var)

0 commit comments

Comments
 (0)