Skip to main content
15-Moonstone
September 10, 2020
Solved

Parameterized odesolve solve block?

  • September 10, 2020
  • 1 reply
  • 5387 views

I am trying to fit data to a "First Order Plus Dead Time" model. I can optimize the fit by using the solution to the FOPDT equation, but, simply as an intellectual exercise, I would like to also be able to do this using the FOPDT differential equation. I have Python code that can do this (it takes an incredibly long time to run; I would guess that Mathcad would take much more time).

 

The nub problem of the problem as I see it, is that I think I need an optimization solve block to do the least squares fit which, in turn, then needs to call an odesolve solve block with parameters.

 

I quickly realized that I don't have a clue as to how to do this, and I haven't found any "parameterized solve block" examples that return odesolve solutions.

 

Attached are my Prime 6 worksheet, text file of data, and PDF of worksheet.

 

Many thanks,

Roger Gunwaldsen

 

Best answer by rgunwaldsen

Thanks,  Werner!

1 reply

25-Diamond I
September 10, 2020

Something like the attached?

rgunwaldsen15-MoonstoneAuthorAnswer
15-Moonstone
September 10, 2020

Thanks,  Werner!