Minimize the gloabal energy of a drtm model.
drt_iterate(obj, n_iter)
obj, | drtm, a drtm model. |
---|---|
n_iter | numeric, number of iterations. |
A new drtm with 'n_iter' times more iterations.
# Example model m <- drt_import( system.file("Jegenstorf_i1000.RData", package="drtplanr") ) drt_iterate(m, 10)#>#> Iteration: 1001, e0: 51821.1, e1: 53862.5 Iteration: 1002, e0: 51821.1, e1: 72240.9 Iteration: 1003, e0: 51821.1, e1: 154923 Iteration: 1004, e0: 51821.1, e1: 56413.3 Iteration: 1005, e0: 51821.1, e1: 55162.9 Iteration: 1006, e0: 51821.1, e1: 52995.4 Iteration: 1007, e0: 51821.1, e1: 98846.1 Iteration: 1008, e0: 51821.1, e1: 53780 Iteration: 1009, e0: 51821.1, e1: 58511.7 Iteration: 1010, e0: 51821.1, e1: 54667.6#>#> Error in diff(m$e$value): object 'm' not found