Package evaluation of NewsvendorModel on Julia 1.11.4 (a71dd056e0*) started at 2025-04-08T11:47:12.160 ################################################################################ # Set-up # Installing PkgEval dependencies (TestEnv)... Set-up completed after 8.78s ################################################################################ # Installation # Installing NewsvendorModel... Resolving package versions... Updating `~/.julia/environments/v1.11/Project.toml` [63d3702b] + NewsvendorModel v0.2.2 Updating `~/.julia/environments/v1.11/Manifest.toml` [66dad0bd] + AliasTables v1.1.3 [34da2185] + Compat v4.16.0 [9a962f9c] + DataAPI v1.16.0 [864edb3b] + DataStructures v0.18.22 [31c24e10] + Distributions v0.25.118 [ffbed154] + DocStringExtensions v0.9.4 [1a297f60] + FillArrays v1.13.0 [34004b35] + HypergeometricFunctions v0.3.28 [92d709cd] + IrrationalConstants v0.2.4 [692b3bcd] + JLLWrappers v1.7.0 [2ab3a3ac] + LogExpFunctions v0.3.29 [e1d29d7a] + Missings v1.2.0 [63d3702b] + NewsvendorModel v0.2.2 [bac558e1] + OrderedCollections v1.8.0 [90014a1f] + PDMats v0.11.33 [21216c6a] + Preferences v1.4.3 [43287f4e] + PtrArrays v1.3.0 [1fd47b50] + QuadGK v2.11.2 [189a3867] + Reexport v1.2.2 [79098fc4] + Rmath v0.8.0 [a2af1166] + SortingAlgorithms v1.2.1 [276daf66] + SpecialFunctions v2.5.0 [10745b16] + Statistics v1.11.1 [82ae8749] + StatsAPI v1.7.0 [2913bbd2] + StatsBase v0.34.4 [4c63d2b9] + StatsFuns v1.4.0 [efe28fd5] + OpenSpecFun_jll v0.5.6+0 [f50d1b31] + Rmath_jll v0.5.1+0 [56f22d72] + Artifacts v1.11.0 [2a0f44e3] + Base64 v1.11.0 [ade2ca70] + Dates v1.11.0 [b77e0a4c] + InteractiveUtils v1.11.0 [8f399da3] + Libdl v1.11.0 [37e2e46d] + LinearAlgebra v1.11.0 [d6f4376e] + Markdown v1.11.0 [de0858da] + Printf v1.11.0 [9a3f8284] + Random v1.11.0 [ea8e919c] + SHA v0.7.0 [9e88b42a] + Serialization v1.11.0 [2f01184e] + SparseArrays v1.11.0 [4607b0f0] + SuiteSparse [fa267f1f] + TOML v1.0.3 [cf7118a7] + UUIDs v1.11.0 [4ec0a83e] + Unicode v1.11.0 [e66e0078] + CompilerSupportLibraries_jll v1.1.1+0 [4536629a] + OpenBLAS_jll v0.3.27+1 [05823500] + OpenLibm_jll v0.8.5+0 [bea87d4a] + SuiteSparse_jll v7.7.0+0 [8e850b90] + libblastrampoline_jll v5.11.0+0 Installation completed after 4.41s ################################################################################ # Precompilation # Precompiling PkgEval dependencies... Precompiling package dependencies... Precompilation completed after 21.63s ################################################################################ # Testing # Testing NewsvendorModel Status `/tmp/jl_Ck2Xfs/Project.toml` [31c24e10] Distributions v0.25.118 [e30172f5] Documenter v1.10.1 [63d3702b] NewsvendorModel v0.2.2 [8dfed614] Test v1.11.0 Status `/tmp/jl_Ck2Xfs/Manifest.toml` [a4c015fc] ANSIColoredPrinters v0.0.1 [1520ce14] AbstractTrees v0.4.5 [66dad0bd] AliasTables v1.1.3 [944b1d66] CodecZlib v0.7.8 [34da2185] Compat v4.16.0 [9a962f9c] DataAPI v1.16.0 [864edb3b] DataStructures v0.18.22 [31c24e10] Distributions v0.25.118 [ffbed154] DocStringExtensions v0.9.4 [e30172f5] Documenter v1.10.1 [1a297f60] FillArrays v1.13.0 [d7ba0133] Git v1.3.1 [34004b35] HypergeometricFunctions v0.3.28 [b5f81e59] IOCapture v0.2.5 [92d709cd] IrrationalConstants v0.2.4 [692b3bcd] JLLWrappers v1.7.0 [682c06a0] JSON v0.21.4 [0e77f7df] LazilyInitializedFields v1.3.0 [2ab3a3ac] LogExpFunctions v0.3.29 [d0879d2d] MarkdownAST v0.1.2 [e1d29d7a] Missings v1.2.0 [63d3702b] NewsvendorModel v0.2.2 [bac558e1] OrderedCollections v1.8.0 [90014a1f] PDMats v0.11.33 [69de0a69] Parsers v2.8.1 ⌅ [aea7be01] PrecompileTools v1.2.1 [21216c6a] Preferences v1.4.3 [43287f4e] PtrArrays v1.3.0 [1fd47b50] QuadGK v2.11.2 [189a3867] Reexport v1.2.2 [2792f1a3] RegistryInstances v0.1.0 [79098fc4] Rmath v0.8.0 [a2af1166] SortingAlgorithms v1.2.1 [276daf66] SpecialFunctions v2.5.0 [10745b16] Statistics v1.11.1 [82ae8749] StatsAPI v1.7.0 [2913bbd2] StatsBase v0.34.4 [4c63d2b9] StatsFuns v1.4.0 [3bb67fe8] TranscodingStreams v0.11.3 [2e619515] Expat_jll v2.6.5+0 [f8c6e375] Git_jll v2.49.0+0 [94ce4f54] Libiconv_jll v1.18.0+0 [458c3c95] OpenSSL_jll v3.0.16+0 [efe28fd5] OpenSpecFun_jll v0.5.6+0 [f50d1b31] Rmath_jll v0.5.1+0 [0dad84c5] ArgTools v1.1.2 [56f22d72] Artifacts v1.11.0 [2a0f44e3] Base64 v1.11.0 [ade2ca70] Dates v1.11.0 [f43a241f] Downloads v1.6.0 [7b1f6079] FileWatching v1.11.0 [b77e0a4c] InteractiveUtils v1.11.0 [b27032c2] LibCURL v0.6.4 [76f85450] LibGit2 v1.11.0 [8f399da3] Libdl v1.11.0 [37e2e46d] LinearAlgebra v1.11.0 [56ddb016] Logging v1.11.0 [d6f4376e] Markdown v1.11.0 [a63ad114] Mmap v1.11.0 [ca575930] NetworkOptions v1.2.0 [44cfe95a] Pkg v1.11.0 [de0858da] Printf v1.11.0 [3fa0cd96] REPL v1.11.0 [9a3f8284] Random v1.11.0 [ea8e919c] SHA v0.7.0 [9e88b42a] Serialization v1.11.0 [6462fe0b] Sockets v1.11.0 [2f01184e] SparseArrays v1.11.0 [f489334b] StyledStrings v1.11.0 [4607b0f0] SuiteSparse [fa267f1f] TOML v1.0.3 [a4e569a6] Tar v1.10.0 [8dfed614] Test v1.11.0 [cf7118a7] UUIDs v1.11.0 [4ec0a83e] Unicode v1.11.0 [e66e0078] CompilerSupportLibraries_jll v1.1.1+0 [deac9b47] LibCURL_jll v8.6.0+0 [e37daf67] LibGit2_jll v1.7.2+0 [29816b5a] LibSSH2_jll v1.11.0+1 [c8ffd9c3] MbedTLS_jll v2.28.6+0 [14a3606d] MozillaCACerts_jll v2023.12.12 [4536629a] OpenBLAS_jll v0.3.27+1 [05823500] OpenLibm_jll v0.8.5+0 [efcefdf7] PCRE2_jll v10.42.0+1 [bea87d4a] SuiteSparse_jll v7.7.0+0 [83775a58] Zlib_jll v1.2.13+1 [8e850b90] libblastrampoline_jll v5.11.0+0 [8e850ede] nghttp2_jll v1.59.0+0 [3f19e933] p7zip_jll v17.4.0+2 Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading. Testing Running tests... Data of the Newsvendor Model * Demand distribution: Truncated(Normal{Float64}(μ=90.0, σ=30.0); lower=0.0, upper=180.0) * Unit cost: 1.00 * Unit selling price: 5.00 Data of the Newsvendor Model * Demand distribution: Uniform{Float64}(a=0.0, b=60.0) * Unit cost: 4.00 * Unit selling price: 5.50 Data of the Newsvendor Model * Demand distribution: DiscreteNonParametric{Int64, Float64, Vector{Int64}, Vector{Float64}}(support=[0, 1, 2], p=[0.3, 0.5, 0.2]) * Unit cost: 10.00 * Unit selling price: 42.00 Data of the Newsvendor Model * Demand distribution: Normal{Float64}(μ=150.0, σ=50.0) * Unit cost: 1.00 * Unit selling price: 4.00 Data of the Newsvendor Model * Demand distribution: DiscreteNonParametric{Int64, Float64, Vector{Int64}, Vector{Float64}}( support: [5000, 10000, 15000, 20000, 25000, 30000, 35000, 40000, 45000, 50000, 55000, 60000, 65000, 70000, 75000] p: [0.0181, 0.0733, 0.1467, 0.1954, 0.1954, 0.1563, 0.1042, 0.0595, 0.0298, 0.0132, 0.0053, 0.0019, 0.0006, 0.0002, 0.0001] ) * Unit cost: 6.00 * Unit selling price: 12.00 * Unit salvage value: 2.50 Data of the Newsvendor Model * Demand distribution: Binomial{Float64}(n=2000, p=0.02) * Unit cost: 28.00 * Unit selling price: 45.00 * Unit salvage value: 27.00 Data of the Newsvendor Model * Demand distribution: Uniform{Float64}(a=0.0, b=300.0) * Unit cost: 0.00 * Unit selling price: 0.00 * Unit holding cost: 0.50 * Unit backorder penalty: 1.00 Data of the Newsvendor Model * Demand distribution: Normal{Float64}(μ=90.0, σ=30.0) * Unit cost: 0.00 * Unit selling price: 3.00 * Fixed cost: 100.00 * Minimal feasible quanitity: 90 units * Maximal feasible quanitity: 120 units Data of the Newsvendor Model * Demand distribution: Normal{Float64}(μ=90.0, σ=30.0) * Unit cost: 1.00 * Unit selling price: 0.00 * Minimal feasible quanitity: 90 units * Maximal feasible quanitity: 120 units Data of the Newsvendor Model * Demand distribution: Normal{Float64}(μ=90.0, σ=30.0) * Unit cost: 0.00 * Unit selling price: 3.00 * Minimal feasible quanitity: 90 units Data of the Newsvendor Model * Demand distribution: Normal{Float64}(μ=18.0, σ=6.0) * Unit cost: 1.15 * Unit selling price: 2.75 * Unit salvage value: 1.15 * Unit holding cost: 0.02 * Unit backorder penalty: 0.50 * Unit substitute profit: 1.60 ===================================== Results of maximizing expected profit * Optimal quantity: 115 units * Expected profit: 318.46 ===================================== This is a consequence of * Cost of underage: 4.00 ╚ + Price: 5.00 ╚ - Cost: 1.00 * Cost of overage: 1.00 ╚ + Cost: 1.00 * Critical fractile: 0.80 * Rounded to nearest integer: true ------------------------------------- Ordering the optimal quantity yields * Expected sales: 86.69 units * Expected lost sales: 3.31 units * Expected leftover: 28.31 units ------------------------------------- Data of the Newsvendor Model * Demand distribution: Truncated(Normal{Float64}(μ=90.0, σ=30.0); lower=0.0, upper=180.0) * Unit cost: 1.00 * Unit selling price: 5.00 ===================================== Results of maximizing expected profit * Optimal quantity: 115 units * Expected profit: 318.46 ===================================== This is a consequence of * Cost of underage: 4.00 ╚ + Price: 5.00 ╚ - Cost: 1.00 * Cost of overage: 1.00 ╚ + Cost: 1.00 * Critical fractile: 0.80 * Rounded to nearest integer: true ------------------------------------- Ordering the optimal quantity yields * Expected sales: 86.69 units * Expected lost sales: 3.31 units * Expected leftover: 28.31 units ------------------------------------- ===================================== Results of maximizing expected profit * Optimal quantity: 16 units * Expected profit: 12.27 ===================================== This is a consequence of * Cost of underage: 1.50 ╚ + Price: 5.50 ╚ - Cost: 4.00 * Cost of overage: 4.00 ╚ + Cost: 4.00 * Critical fractile: 0.27 * Rounded to nearest integer: true ------------------------------------- Ordering the optimal quantity yields * Expected sales: 13.87 units * Expected lost sales: 16.13 units * Expected leftover: 2.13 units ------------------------------------- ===================================== Results of maximizing expected profit * Optimal quantity: 1 units * Expected profit: 19.40 ===================================== This is a consequence of * Cost of underage: 32.00 ╚ + Price: 42.00 ╚ - Cost: 10.00 * Cost of overage: 10.00 ╚ + Cost: 10.00 * Critical fractile: 0.76 * Rounded to nearest integer: true ------------------------------------- Ordering the optimal quantity yields * Expected sales: 0.70 units * Expected lost sales: 0.20 units * Expected leftover: 0.30 units ------------------------------------- ===================================== Results of maximizing expected profit * Optimal quantity: 184 units * Expected profit: 386.44 ===================================== This is a consequence of * Cost of underage: 3.00 ╚ + Price: 4.00 ╚ - Cost: 1.00 * Cost of overage: 1.00 ╚ + Cost: 1.00 * Critical fractile: 0.75 * Rounded to nearest integer: true ------------------------------------- Ordering the optimal quantity yields * Expected sales: 142.61 units * Expected lost sales: 7.39 units * Expected leftover: 41.39 units ------------------------------------- ===================================== Results of maximizing expected profit * Optimal quantity: 30000 units * Expected profit: 113025.00 ===================================== This is a consequence of * Cost of underage: 6.00 ╚ + Price: 12.00 ╚ - Cost: 6.00 * Cost of overage: 3.50 ╚ + Cost: 6.00 ╚ - Salvage value: 2.50 * Critical fractile: 0.63 * Rounded to nearest integer: true ------------------------------------- Ordering the optimal quantity yields * Expected sales: 22950.00 units * Expected lost sales: 2050.00 units * Expected leftover: 7050.00 units * Expected salvage revenue: 17625.00 ------------------------------------- ===================================== Results of maximizing expected profit * Optimal quantity: 30000.00 * Expected profit: 113025.00 ===================================== This is a consequence of * Cost of underage: 6.00 ╚ + Price: 12.00 ╚ - Cost: 6.00 * Cost of overage: 3.50 ╚ + Cost: 6.00 ╚ - Salvage value: 2.50 * Critical fractile: 0.63 * Rounded to nearest integer: false ------------------------------------- Ordering the optimal quantity yields * Expected sales: 22950.00 units * Expected lost sales: 2050.00 units * Expected leftover: 7050.00 units * Expected salvage revenue: 17625.00 ------------------------------------- ===================================== Results of maximizing expected profit * Optimal quantity: 50 units * Expected profit: 666.88 ===================================== This is a consequence of * Cost of underage: 17.00 ╚ + Price: 45.00 ╚ - Cost: 28.00 * Cost of overage: 1.00 ╚ + Cost: 28.00 ╚ - Salvage value: 27.00 * Critical fractile: 0.94 * Rounded to nearest integer: true ------------------------------------- Ordering the optimal quantity yields * Expected sales: 39.83 units * Expected lost sales: 0.17 units * Expected leftover: 10.17 units * Expected salvage revenue: 274.68 ------------------------------------- ===================================== Results of maximizing expected profit * Optimal quantity: 200 units * Expected profit: -50.00 ===================================== This is a consequence of * Cost of underage: 1.00 ╚ + Backorder penalty: 1.00 * Cost of overage: 0.50 ╚ + Holding cost: 0.50 * Critical fractile: 0.67 * Rounded to nearest integer: true ------------------------------------- Ordering the optimal quantity yields * Expected sales: 133.33 units * Expected lost sales: 16.67 units * Expected leftover: 66.67 units * Expected backorder penalty: 16.67 * Expected holding cost: 33.33 ------------------------------------- ===================================== Results of maximizing expected profit * Optimal quantity: 120 units * Expected profit: 162.50 ===================================== This is a consequence of * Cost of underage: 3.00 ╚ + Price: 3.00 * Cost of overage: 0.00 * Critical fractile: 1.00 ! No damage from excess quanitiy ! ------------------------------------- Ordering the optimal quantity yields * Expected sales: 87.50 units * Expected lost sales: 2.50 units * Expected leftover: 32.50 units ------------------------------------- ===================================== Results of maximizing expected profit * Optimal quantity: 90 units * Expected profit: -90.00 ===================================== This is a consequence of * Cost of underage: -1.00 ╚ - Cost: 1.00 * Cost of overage: 1.00 ╚ + Cost: 1.00 * Critical fractile: -Inf ! No benefit from trade ! * Rounded to nearest integer: true ------------------------------------- Ordering the optimal quantity yields * Expected sales: 78.03 units * Expected lost sales: 11.97 units * Expected leftover: 11.97 units ------------------------------------- ===================================== Results of maximizing expected profit * Optimal quantity: Inf units * Expected profit: 270.00 ===================================== This is a consequence of * Cost of underage: 3.00 ╚ + Price: 3.00 * Cost of overage: 0.00 * Critical fractile: 1.00 ! No damage from excess quanitiy ! ! No upper bound on quanitity ! ------------------------------------- Ordering the optimal quantity yields * Expected sales: NaN units * Expected lost sales: NaN units * Expected leftover: Inf units ------------------------------------- ===================================== Results of maximizing expected profit * Optimal quantity: 29 units * Expected profit: 28.55 ===================================== This is a consequence of * Cost of underage: 0.50 ╚ + Price: 2.75 ╚ - Cost: 1.15 ╚ + Backorder penalty: 0.50 ╚ - Substitute profit: 1.60 * Cost of overage: 0.02 ╚ + Cost: 1.15 ╚ - Salvage value: 1.15 ╚ + Holding cost: 0.02 * Critical fractile: 0.96 * Rounded to nearest integer: true ------------------------------------- Ordering the optimal quantity yields * Expected sales: 17.92 units * Expected lost sales: 0.08 units * Expected leftover: 11.08 units * Expected salvage revenue: 12.74 * Expected backorder penalty: 0.04 * Expected holding cost: 0.21 * Expected substitute profit: 0.13 ------------------------------------- Test Summary: | Pass Total Time Testing NVModel initialization | 26 26 21.7s Testing metrics: Test Failed at /home/pkgeval/.julia/packages/NewsvendorModel/JQVOS/test/newsvendorproblem_test.jl:59 Expression: leftover(m, 120.0) == 30.003682468511524 Evaluated: 30.00368246851139 == 30.003682468511524 Stacktrace: [1] macro expansion @ /opt/julia/share/julia/stdlib/v1.11/Test/src/Test.jl:679 [inlined] [2] top-level scope @ ~/.julia/packages/NewsvendorModel/JQVOS/test/newsvendorproblem_test.jl:515 [3] include(fname::String) @ Main ./sysimg.jl:38 [4] macro expansion @ ~/.julia/packages/NewsvendorModel/JQVOS/test/runtests.jl:6 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.11/Test/src/Test.jl:1704 [inlined] [6] top-level scope @ ~/.julia/packages/NewsvendorModel/JQVOS/test/runtests.jl:6 Testing metrics: Test Failed at /home/pkgeval/.julia/packages/NewsvendorModel/JQVOS/test/newsvendorproblem_test.jl:60 Expression: profit(m, 120.0) == 269.98895259446545 Evaluated: 269.98895259446584 == 269.98895259446545 Stacktrace: [1] macro expansion @ /opt/julia/share/julia/stdlib/v1.11/Test/src/Test.jl:679 [inlined] [2] top-level scope @ ~/.julia/packages/NewsvendorModel/JQVOS/test/newsvendorproblem_test.jl:515 [3] include(fname::String) @ Main ./sysimg.jl:38 [4] macro expansion @ ~/.julia/packages/NewsvendorModel/JQVOS/test/runtests.jl:6 [inlined] [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.11/Test/src/Test.jl:1704 [inlined] [6] top-level scope @ ~/.julia/packages/NewsvendorModel/JQVOS/test/runtests.jl:6 Test Summary: | Pass Fail Total Time Testing metrics | 60 2 62 8.2s ERROR: LoadError: Some tests did not pass: 60 passed, 2 failed, 0 errored, 0 broken. in expression starting at /home/pkgeval/.julia/packages/NewsvendorModel/JQVOS/test/runtests.jl:6 Testing failed after 47.52s ERROR: LoadError: Package NewsvendorModel errored during testing Stacktrace: [1] pkgerror(msg::String) @ Pkg.Types /opt/julia/share/julia/stdlib/v1.11/Pkg/src/Types.jl:68 [2] test(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; coverage::Bool, julia_args::Cmd, test_args::Cmd, test_fn::Nothing, force_latest_compatible_version::Bool, allow_earlier_backwards_compatible_versions::Bool, allow_reresolve::Bool) @ Pkg.Operations /opt/julia/share/julia/stdlib/v1.11/Pkg/src/Operations.jl:2124 [3] test @ /opt/julia/share/julia/stdlib/v1.11/Pkg/src/Operations.jl:2007 [inlined] [4] test(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; coverage::Bool, test_fn::Nothing, julia_args::Cmd, test_args::Cmd, force_latest_compatible_version::Bool, allow_earlier_backwards_compatible_versions::Bool, allow_reresolve::Bool, kwargs::@Kwargs{io::IOContext{IO}}) @ Pkg.API /opt/julia/share/julia/stdlib/v1.11/Pkg/src/API.jl:481 [5] test(pkgs::Vector{Pkg.Types.PackageSpec}; io::IOContext{IO}, kwargs::@Kwargs{julia_args::Cmd}) @ Pkg.API /opt/julia/share/julia/stdlib/v1.11/Pkg/src/API.jl:159 [6] test @ /opt/julia/share/julia/stdlib/v1.11/Pkg/src/API.jl:147 [inlined] [7] #test#74 @ /opt/julia/share/julia/stdlib/v1.11/Pkg/src/API.jl:146 [inlined] [8] top-level scope @ /PkgEval.jl/scripts/evaluate.jl:219 in expression starting at /PkgEval.jl/scripts/evaluate.jl:210 PkgEval failed after 94.81s: package has test failures