@@ -2310,11 +2310,12 @@ For more details on this argument, see the ODEFunction documentation.
23102310
23112311The fields of the BVPFunction type directly match the names of the inputs.
23122312"""
2313- struct BVPFunction{iip, specialize, twopoint, F, BF, TMM, Ta, Tt, TJ, BCTJ, JVP, VJP,
2313+ struct BVPFunction{iip, specialize, twopoint, F, BF, C, TMM, Ta, Tt, TJ, BCTJ, JVP, VJP,
23142314 JP, BCJP, BCRP, SP, TW, TWt, TPJ, O, TCV, BCTCV,
23152315 SYS, ID} <: AbstractBVPFunction{iip, twopoint}
23162316 f:: F
23172317 bc:: BF
2318+ cost:: C
23182319 mass_matrix:: TMM
23192320 analytic:: Ta
23202321 tgrad:: Tt
@@ -4326,6 +4327,7 @@ function MultiObjectiveOptimizationFunction{iip}(f, adtype::AbstractADType = NoA
43264327end
43274328
43284329function BVPFunction {iip, specialize, twopoint} (f, bc;
4330+ cost = (x, p) -> zero (x),
43294331 mass_matrix = __has_mass_matrix (f) ? f. mass_matrix : I,
43304332 analytic = __has_analytic (f) ? f. analytic : nothing ,
43314333 tgrad = __has_tgrad (f) ? f. tgrad : nothing ,
@@ -4464,7 +4466,7 @@ function BVPFunction{iip, specialize, twopoint}(f, bc;
44644466 sys = something (sys, SymbolCache (syms, paramsyms, indepsym))
44654467
44664468 if specialize === NoSpecialize
4467- BVPFunction{iip, specialize, twopoint, Any, Any, Any, Any, Any,
4469+ BVPFunction{iip, specialize, twopoint, Any, Any, Any, Any, Any, Any,
44684470 Any, Any, Any, Any, Any, Any, Any, Any, Any, Any,
44694471 Any,
44704472 Any, typeof (_colorvec), typeof (_bccolorvec), Any, Any}(
@@ -4474,14 +4476,14 @@ function BVPFunction{iip, specialize, twopoint}(f, bc;
44744476 sparsity, Wfact, Wfact_t, paramjac, observed,
44754477 _colorvec, _bccolorvec, sys, initialization_data)
44764478 else
4477- BVPFunction{iip, specialize, twopoint, typeof (_f), typeof (bc),
4479+ BVPFunction{iip, specialize, twopoint, typeof (_f), typeof (bc), typeof (cost),
44784480 typeof (mass_matrix), typeof (analytic), typeof (tgrad), typeof (jac),
44794481 typeof (bcjac), typeof (jvp), typeof (vjp), typeof (jac_prototype),
44804482 typeof (bcjac_prototype), typeof (bcresid_prototype), typeof (sparsity),
44814483 typeof (Wfact), typeof (Wfact_t), typeof (paramjac), typeof (observed),
44824484 typeof (_colorvec), typeof (_bccolorvec), typeof (sys),
44834485 typeof (initialization_data)}(
4484- _f, bc, mass_matrix, analytic,
4486+ _f, bc, cost, mass_matrix, analytic,
44854487 tgrad, jac, bcjac, jvp, vjp,
44864488 jac_prototype, bcjac_prototype, bcresid_prototype, sparsity,
44874489 Wfact, Wfact_t, paramjac,
0 commit comments