@@ -56,12 +56,15 @@ struct JuMPDynamicOptProblem{uType, tType, isinplace, P, F, K} <:
5656 wrapped_model:: InfiniteOptModel
5757 kwargs:: K
5858
59- function JuMPDynamicOptProblem (f, u0, tspan, p, model, kwargs... )
59+ function JuMPDynamicOptProblem (f, u0, tspan, p, model, kwargs)
6060 return new{
6161 typeof (u0), typeof (tspan), SciMLBase. isinplace (f, 5 ),
6262 typeof (p), typeof (f), typeof (kwargs),
6363 }(f, u0, tspan, p, model, kwargs)
6464 end
65+ function JuMPDynamicOptProblem (f, u0, tspan, p, model; kwargs... )
66+ return JuMPDynamicOptProblem (f, u0, tspan, p, model, kwargs)
67+ end
6568end
6669
6770struct InfiniteOptDynamicOptProblem{uType, tType, isinplace, P, F, K} < :
@@ -73,12 +76,15 @@ struct InfiniteOptDynamicOptProblem{uType, tType, isinplace, P, F, K} <:
7376 wrapped_model:: InfiniteOptModel
7477 kwargs:: K
7578
76- function InfiniteOptDynamicOptProblem (f, u0, tspan, p, model, kwargs... )
79+ function InfiniteOptDynamicOptProblem (f, u0, tspan, p, model, kwargs)
7780 return new{
7881 typeof (u0), typeof (tspan), SciMLBase. isinplace (f),
7982 typeof (p), typeof (f), typeof (kwargs),
8083 }(f, u0, tspan, p, model, kwargs)
8184 end
85+ function InfiniteOptDynamicOptProblem (f, u0, tspan, p, model; kwargs... )
86+ return InfiniteOptDynamicOptProblem (f, u0, tspan, p, model, kwargs)
87+ end
8288end
8389
8490MTK. generate_internal_model (m:: Type{InfiniteOptModel} ) = InfiniteModel ()
0 commit comments