Skip to content

Commit

Permalink
Fix trilinear case 5b
Browse files Browse the repository at this point in the history
  • Loading branch information
mewilhel committed Nov 7, 2020
1 parent 6f14455 commit 3c6b022
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/forward_operators/trilinear.jl
Original file line number Diff line number Diff line change
Expand Up @@ -553,16 +553,16 @@ function trilinear_case_5(x::MC{N,T}, y::MC{N,T}, z::MC{N,T}, q::Interval{Float6

else

delY = zU - zL
delY = yU - yL
θcc1 = xyzLLL - xyzLUU - xyzULL + xyzULU
θcc2 = xyzLUL - xyzULL - xyzLUU + xyzUUU

cc_b1 = -2.0*xyzLLU
cc_b2 = -2.0*xyzUUL
cc_b3 = -(xyzLLL + xyzLUL)
cc_b4 = -(xyzULU + xyzUUU)
cc_b5 = θcc1*zU/delY - xyzLLL - xyzULU + xyzLUU
cc_b6 = -θcc2*zL/delY - xyzLUL - xyzUUU + xyzULL
cc_b5 = θcc1*yU/delY - xyzLLL - xyzULU + xyzLUU
cc_b6 = -θcc2*yL/delY - xyzLUL - xyzUUU + xyzULL

cc_ax1, cc_ax2, cc_ax3, cc_ax4, cc_ax5, cc_ax6 = yzLU, yzUL, yzLL, yzUU, yzLL, yzUU
cc_ay1, cc_ay2, cc_ay3, cc_ay4, cc_ay5, cc_ay6 = xzLU, xzUL, xzLL, xzUU, -θcc1/delY, θcc2/delY
Expand Down
4 changes: 2 additions & 2 deletions test/forward_mccormick.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2075,8 +2075,8 @@ end
q5bv = (x[9]*y[9])*z[9]
#@test isapprox(q5b.cv, 0.0, atol = 1E-3)
#@test isapprox(q5b.cc, 0.0, atol = 1E-3)
@show q5b
@show q5bv
#@show q5b
#@show q5bv

# TODO: SWITCHED RELAXATIONS
q6 = trilinear(x[10], y[10], z[10])
Expand Down

2 comments on commit 3c6b022

@mewilhel
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/24433

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.9.1 -m "<description of version>" 3c6b022027d9adb74c19ae3456f929afbfd36963
git push origin v0.9.1

Please sign in to comment.