diff --git a/ext/JuMPModels/bioreactor.jl b/ext/JuMPModels/bioreactor.jl index 924d96c1..fc96128e 100644 --- a/ext/JuMPModels/bioreactor.jl +++ b/ext/JuMPModels/bioreactor.jl @@ -30,7 +30,7 @@ julia> model = OptimalControlProblems.bioreactor(JuMPBackend(); N=100) - [control-toolbox/bocop](https://github.com/control-toolbox/bocop/tree/main/bocop) """ -function OptimalControlProblems.bioreactor(::JuMPBackend; N::Int=500) +function OptimalControlProblems.bioreactor(::JuMPBackend; N::Int=600) # parameters β = 1 diff --git a/ext/MetaData/bioreactor.jl b/ext/MetaData/bioreactor.jl index 607fcf4b..ca363bc0 100644 --- a/ext/MetaData/bioreactor.jl +++ b/ext/MetaData/bioreactor.jl @@ -1,6 +1,6 @@ bioreactor_meta = OrderedDict( :name => "bioreactor", - :N => 500, + :N => 600, :minimise => false, :state_name => ["y", "s", "b"], :costate_name => ["∂y", "∂s", "∂b"], diff --git a/ext/OptimalControlModels/bioreactor.jl b/ext/OptimalControlModels/bioreactor.jl index ec2304ac..d6f10cd9 100644 --- a/ext/OptimalControlModels/bioreactor.jl +++ b/ext/OptimalControlModels/bioreactor.jl @@ -33,7 +33,7 @@ NLP model corresponding to the Bioreactor problem - BOCOP repository: https://github.com/control-toolbox/bocop/tree/main/bocop """ -function OptimalControlProblems.bioreactor(::OptimalControlBackend; N::Int=500) +function OptimalControlProblems.bioreactor(::OptimalControlBackend; N::Int=600) # METHANE PROBLEM # μ2 according to growth model diff --git a/test/figures/init/bioreactor.pdf b/test/figures/init/bioreactor.pdf index 9542a9fa..47919cb8 100644 Binary files a/test/figures/init/bioreactor.pdf and b/test/figures/init/bioreactor.pdf differ diff --git a/test/figures/solution/bioreactor.pdf b/test/figures/solution/bioreactor.pdf index ad131d9f..094dec66 100644 Binary files a/test/figures/solution/bioreactor.pdf and b/test/figures/solution/bioreactor.pdf differ diff --git a/test/runtests.jl b/test/runtests.jl index 0141f8f7..f5c71570 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -34,7 +34,7 @@ end # list_of_problems = setdiff(list_of_problems, problems_to_exclude) # list_of_problems = [ -# :space_shuttle +# :bioreactor # ] # The list of all the problems to test diff --git a/test/test_OptimalControl.jl b/test/test_OptimalControl.jl index 881d1afd..68da5046 100644 --- a/test/test_OptimalControl.jl +++ b/test/test_OptimalControl.jl @@ -17,7 +17,7 @@ function test_OptimalControl() keep_problem = true # - DEBUG && println("\n", "┌─ ", string(f), " (JuMP)") + DEBUG && println("\n", "┌─ ", string(f), " (OptimalControl)") DEBUG && println("│") # Set up the model diff --git a/test/utils.jl b/test/utils.jl index 72d5f4b3..ed4b8fec 100644 --- a/test/utils.jl +++ b/test/utils.jl @@ -296,10 +296,6 @@ function comparison(; max_iter, test_name) L2_bd = max(0.5*(L2_oc + L2_jp)*ε_rel_control, ε_abs_control) res = @my_test_broken L2_di < L2_bd - if f != :bioreactor # the test does not pass on GitHub CI - keep_problem = keep_problem && (typeof(res) == Test.Pass) - end - DEBUG && println("├─ control $(u_vars[i])") DEBUG && println("│") DEBUG && println("│ L2 oc = ", L2_oc)