Skip to content

Commit 4b94816

Browse files
committed
and params
1 parent df1f7ae commit 4b94816

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/entities/SolverParams.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ mutable struct SolverParams <: DFG.AbstractParams
4444
gibbsIters::Int
4545
maxincidence::Int # maximum incidence to a variable in an effort to enhance sparsity
4646
alwaysFreshMeasurements::Bool
47+
# should factor gradients be calculated or attempted (UNDER DEVELOPMENT, 21Q3)
48+
attemptGradients::Bool
4749
devParams::Dict{Symbol,String}
4850
#
4951
end
@@ -79,6 +81,7 @@ SolverParams(;dimID::Int=0,
7981
gibbsIters::Int=3,
8082
maxincidence::Int=500,
8183
alwaysFreshMeasurements::Bool=true,
84+
attemptGradients::Bool=false,
8285
devParams::Dict{Symbol,String}=Dict{Symbol,String}()
8386
) = begin useMsgLikelihoods==true && @warn "useMsgLikelihoods is under development, use with care, see #1010"
8487
SolverParams( dimID,
@@ -112,6 +115,7 @@ SolverParams(;dimID::Int=0,
112115
gibbsIters,
113116
maxincidence,
114117
alwaysFreshMeasurements,
118+
attemptGradients,
115119
devParams )
116120
end
117121
#

0 commit comments

Comments
 (0)