C
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.
??? 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.