1. A method of operating a tool in a wellbore, comprising: defining at least one value of at least one tool parameter; defining a plurality of values of at least one wellbore parameter; obtaining a plurality of output values of at least one tool operating parameter using the at least one value of the at least one tool parameter and the plurality of values of the at least one wellbore parameter as inputs to a selected model; and obtaining a neural network model by using as inputs the plurality of values of the at least one wellbore parameter and the calculated plurality of output values of the at least one tool operating parameter.