sorry to open 2 issues in a row, but they are separate so I thought it would be best this way.
I have a non-linear model with 6 parameters, and 2 independent variables, that you see here https://github.com/AlexisRenchon/DAMMmodel.jl/blob/master/src/DAMM.jl
that I want to fit to data using LsqFit.jl
My problem is that I often know the value of the parameter 5 (p[5]) before doing the fitting.
I have read before that doing
# porosity is my known value (Float64) of p[5]
lb = [0.0, 0.0, 0.0, 0.0, porosity, 0.0] # params can't be negative
ub = [Inf, Inf, Inf, Inf, porosity, Inf]
is not a good idea.
so what should I do instead?