neural network sequential mode training using MATLAB

C

Thread Starter

chuah

i tried to train a nn controller with on-line specialized training scheme in direct inverse control method. however, instead of simulating the real plant, i substituted it with a well-trained nn plant model to propagate the error back and also predict the plant's output. i used the command of 'adapt' in MATLAB to train the controller. however, it end up with error messages:

??? Error: File: C:\DOCUME~1\SPEE6F~1.CHU\LOCALS~1\Temp\matlab_nnet\tp030326.m Line: 66 Column: 18
Expected a variable, function, or constant, found "}".

Error in ==> C:\DOCUME~1\SPEE6F~1.CHU\LOCALS~1\Temp\matlab_nnet\tp030386.m
On line 26 ==> [perf,El:),ts),Ac:),ts+AcInd),N,LWZ,IWZ,BZ] = tp030326(net,PDts,Ac:),ts+AiInd),Tl:),ts),Q,1);

Error in ==> C:\MATLAB6p5\toolbox\nnet\nnet\trains.m
On line 132 ==> [net,tr,Ac,El]=feval(trainsfuncname,net,PD,Tl,Ai,Q,TS,VV,TV);

Error in ==> C:\MATLAB6p5\toolbox\nnet\nnet\@network\adapt.m
On line 182 ==> [net,tr,Ac,El] = feval(adaptFcn,net,Pd,Tl,Ai,Q,TS,[],[]);

Error in ==> C:\MATLAB6p5\work\training set 2\new\4th order trial\tnet.m
On line 86 ==> [tnet,y,e] = adapt(tnet,in0,Yr0,Pi1,Ai1);

can somebody tell me what went wrong?

thank you.
 
D

Dr ir Gerrit M. van der Molen

Hi Chuah,

The immediate answer is that you have a syntax error in your script file 'tp030326.m'. To check this in more detail, you would need to send the complete file. This is a specific MATLAB problem, not a general control/automation problem and has nothing to do with the program being a neural network application. If you wanted to look at this problem, you might be more successful at a MATLAB discussion group, for example the group 'comp.soft-sys.matlab' at Google:

http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&group=comp.soft-sys.matlab

Hope this link works for you, otherwise just search for 'matlab' within the groups at the Google web-site http://www.google.com.

Best of luck, Gerrit.

--
-----------------------------------------------------------------------
Dr ir Gerrit M. van der Molen
Industrial Systems and Control Ltd.
50 George Street, Glasgow G1 1QE, UK
Tel: (+44) (0)141-553 1111 Fax: (+44) (0)141-553 1232
Email: [email protected] WWW: http://www.isc-ltd.com
-----------------------------------------------------------------------
 
Dear Dr. Gerrit

yes, i knew that there was a syntax error in my file "tp030326.m" ,but the file was created by the MATLAB itself to simulate the network when "adapt" command was called. what can i do to overcome this error in the file not created by myself?

thank you for your advices!

regard,
chuah


 
D

Dr ir Gerrit M. van der Molen

Hi Chuah,

If this file was generated automatically by MATLAB itself, I think the only way to solve your problem is by explaining your problem to the producers of MATLAB, i.e. The MathWorks, and ask them for support. Their main web-site is at:

http://www.mathworks.com

If you did not buy direct from their US site, you might need to go through your local rep first for support. If you do not have support (anymore) from the MathWorks, your best bet is to try the MATLAB-specific discussion groups I mentioned in my previous email; I am afraid I am out of my depth from here on!

Best of luck,
Gerrit.
--

-----------------------------------------------------------------------
Dr ir Gerrit M. van der Molen
Industrial Systems and Control Ltd.
50 George Street, Glasgow G1 1QE, UK
Tel: (+44) (0)141-553 1111 Fax: (+44) (0)141-553 1232
Email: [email protected] WWW: http://www.isc-ltd.com
-----------------------------------------------------------------------
 
Top