Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
IfElse = "615f187c-cbe4-4ef1-ba3b-2fcf58d6d173"
MultiFloats = "bdf0d083-296b-4888-a5b6-7498122e68a5"
PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
SymbolicUtils = "d1185830-fcd6-423d-90d6-eec64667417b"
Expand All @@ -22,7 +21,6 @@ DocStringExtensions = "0.8 - 0.9"
Graphs = "1"
IfElse = "0.1.0 - 0.1.1"
MultiFloats = "3.1"
PrecompileTools = "~1"
Reexport = "~1"
StaticArrays = "~1"
SymbolicUtils = "3"
Expand Down
21 changes: 0 additions & 21 deletions src/SourceCodeMcCormick.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ using Graphs
using CUDA
using StaticArrays: @MVector
using MultiFloats
using PrecompileTools: @setup_workload, @compile_workload
import Dates
import SymbolicUtils: BasicSymbolic, exprtype, SYM, TERM, ADD, MUL, POW, DIV

Expand Down Expand Up @@ -51,26 +50,6 @@ include(joinpath(@__DIR__, "transform", "transform.jl"))
include(joinpath(@__DIR__, "grad", "grad.jl"))
include(joinpath(@__DIR__, "kernel_writer", "kernel_write.jl"))

@setup_workload begin
@variables x, y
@compile_workload begin
kgen(1 + x + y^2 + x*y, overwrite=true, compile=false)
kgen(1 +
(-x) +
exp(x) +
log(x) +
(1/x) +
abs(x) +
2*y +
(1/(1+exp(-x))) +
x^3 +
x^4 +
x^3.5 +
cos(x) +
x*y, overwrite=true, compile=false)
kgen(x^3)
end
end

export McCormickIntervalTransform, IntervalTransform

Expand Down
Loading