I’d like to have a model in Stan where the data is drawn from a distribution that is a dependent on the parameters but where the dependency involves hill-climbing on a cost function. If I were coding this “normally”, I’d use simplex or something like that.
I think this is different, but similar, to using algebra_solver_newton
, though I could calculate the gradient of my cost function and either use that solver or simply take some steps in the direction of the gradient. Can someone point me in the right direction?
Thank you in advance.
Simon
PS I’d call this “optimization”, but searching for that means that I find lots of webpages on using Stan to optimize and thereby find MAP estimates. If I search from “simplex”, I get lots of pages about Dirichlet distributions. Argh.