You are here

Iteration history

2 posts / 0 new
Last post
RickD's picture
Offline
Joined: 03/01/2011 - 12:07
Iteration history

Hi All.

Does anyone know how to view the iteration history from the optimization routine? I generally like to examine this information as I consider model fit. I searched the archives and it looks like this issue has received some attention but I could not figure out how to obtain this output.

Thanks in advance,

Rick DeShon

mspiegel's picture
Offline
Joined: 07/31/2009 - 15:24
Setup the checkpoint options

Setup the checkpoint options so that the model state is written to a file every NNN iterations. Use mxOptions() to set this up prior to running the model.

model <- mxOption(model, "Checkpoint Units", "iterations")
model <- mxOption(model, "Checkpoint Count", NNN)

Then run the model with checkpoint=TRUE.

modelOut <- mxRun(model, checkpoint = TRUE)

See ?mxOptions for more options on controlling the output directory or filename of the checkpoint file.