## Neural Network - How to use a custom training function

### David Franco (view profile)

on 25 Mar 2018
Latest activity Commented on by David Franco

### David Franco (view profile)

on 25 Mar 2018
Is it possible to replace standard matlab training methods (like Gradient Descent, Levenberg-Marquardt, etc.) by other methods of global optimization, like Particle Swarm Optimization or Simulated Annealing?
I was looking at C:\Program Files\MATLAB\R2018a\toolbox\nnet\nnet\nntrain\... for some clues, but nothing comes up...
Attached are two original files of the mentioned training functions ( traingd and trainlm ).

### Greg Heath (view profile)

on 25 Mar 2018

Use the help and doc commands on
trainru
trainb
trainr
trainc
trains
trainbu
trainscg
traingdx
traingdm
traingd
trainbr
traingda
There may be more, my website search using "trainfcn" was very brief.
Thank you for formally accepting my answer
Greg

David Franco

### David Franco (view profile)

on 25 Mar 2018
Yeah, I know all of these training functions.
My question is: Can I use my own custom training function and replace these MATLAB inbuilt?
Thanks!