@@ -456,13 +456,13 @@ SourceCodeMcCormick generated functions, we can make use of the massive parallel
456456available using GPUs.
457457
458458``` julia
459- using JuMP, EAGO, SourceCodeMcCormick, CUDA
459+ using JuMP, EAGO, SourceCodeMcCormick, Symbolics, DocStringExtensions CUDA
460460
461- # Import the ParBB algorithm (Note: path may vary depending on where
462- # this file is in relation to SourceCodeMcCormick)
463- include (joinpath (@__DIR__ , " ParBB" , " extension.jl" ))
464- include (joinpath (@__DIR__ , " ParBB" , " subroutines.jl" ))
465- include (joinpath (@__DIR__ , " ParBB" , " kernels.jl" ))
461+ # Import the ParBB algorithm
462+ BASE_FOLDER = dirname ( dirname ( pathof ( SourceCodeMcCormick)) )
463+ include (joinpath (BASE_FOLDER, " examples " , " ParBB" , " extension.jl" ))
464+ include (joinpath (BASE_FOLDER, " examples " , " ParBB" , " subroutines.jl" ))
465+ include (joinpath (BASE_FOLDER, " examples " , " ParBB" , " kernels.jl" ))
466466
467467# Weights associated with the hidden layer
468468W1 = [ 0.54 - 1.97 0.09 - 2.14 1.01 - 0.58 0.45 0.26 ;
@@ -595,13 +595,13 @@ implementation. The following shows how SourceCodeMcCormick's new subgradient fe
595595with ParBB.
596596
597597``` julia
598- using JuMP, EAGO, SourceCodeMcCormick, CUDA
598+ using JuMP, EAGO, SourceCodeMcCormick, Symbolics, DocStringExtensions, CUDA
599599
600- # Import the ParBB algorithm (Note: path may vary depending on where
601- # this file is in relation to SourceCodeMcCormick)
602- include (joinpath (@__DIR__ , " ParBB" , " extension.jl" ))
603- include (joinpath (@__DIR__ , " ParBB" , " subroutines.jl" ))
604- include (joinpath (@__DIR__ , " ParBB" , " kernels.jl" ))
600+ # Import the ParBB algorithm
601+ BASE_FOLDER = dirname ( dirname ( pathof ( SourceCodeMcCormick)) )
602+ include (joinpath (BASE_FOLDER, " examples " , " ParBB" , " extension.jl" ))
603+ include (joinpath (BASE_FOLDER, " examples " , " ParBB" , " subroutines.jl" ))
604+ include (joinpath (BASE_FOLDER, " examples " , " ParBB" , " kernels.jl" ))
605605
606606# Weights associated with the hidden layer
607607W1 = [ 0.54 - 1.97 0.09 - 2.14 1.01 - 0.58 0.45 0.26 ;
0 commit comments