Skip to content

Commit 917b76a

Browse files
Created a new struct in scimlfunctions.jl
The new MultiObjectiveOptimizationFunction struct has a jac field instead of the grad and a vector of H for the hess.
1 parent e3a0de8 commit 917b76a

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

src/scimlfunctions.jl

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1923,6 +1923,38 @@ struct OptimizationFunction{iip, AD, F, G, H, HV, C, CJ, CJV, CVJ, CH, HP, CJP,
19231923
lag_hess_colorvec::LHCV
19241924
end
19251925

1926+
"""
1927+
$(TYPEDEF)
1928+
"""
1929+
1930+
struct MultiObjectiveOptimizationFunction{iip, AD, F, J, H, HV, C, CJ, CJV, CVJ, CH, HP, CJP, CHP, O,
1931+
EX, CEX, SYS, LH, LHP, HCV, CJCV, CHCV, LHCV} <:
1932+
AbstractOptimizationFunction{iip}
1933+
f::F
1934+
adtype::AD
1935+
jac::J # Replacing grad with jac for the Jacobian
1936+
hess::Vector{H} # Hess will be a vector of type H
1937+
hv::HV
1938+
cons::C
1939+
cons_j::CJ
1940+
cons_jvp::CJV
1941+
cons_vjp::CVJ
1942+
cons_h::CH
1943+
hess_prototype::HP
1944+
cons_jac_prototype::CJP
1945+
cons_hess_prototype::CHP
1946+
observed::O
1947+
expr::EX
1948+
cons_expr::CEX
1949+
sys::SYS
1950+
lag_h::LH
1951+
lag_hess_prototype::LHP
1952+
hess_colorvec::HCV
1953+
cons_jac_colorvec::CJCV
1954+
cons_hess_colorvec::CHCV
1955+
lag_hess_colorvec::LHCV
1956+
end
1957+
19261958
"""
19271959
$(TYPEDEF)
19281960
"""

0 commit comments

Comments
 (0)