Train the inverted double link cartpole model