MATLAB Answers

James
0

Error when running HEV model

Asked by James
on 15 Mar 2011
Hi,
I downloaded and tried running a HEV model from here: http://www.mathworks.com/matlabcentral/fileexchange/28441-hybrid-electric-vehicle-model-in-simulink
However, when I typed this command
> Test_HEV_Model_SHORT (as shown in the webinar)
I got this error (after simulating UC2)...
Simulating UC1, System Level, Simple Vehicle, Predefined Battery Elapsed time is 4.312
Simulating UC2, System Level, Simple Vehicle, Predefined Battery Elapsed time is 11.0695
??? Error using ==> Test_HEV_Model_SHORT at 34 Nonlinear solver: failed to converge, residual norm too large. Transient initialization, solving for consistent states and modes, failed to converge. Here is the set of components with unconverged equations: 'HEV_SeriesParallel/Electrical/System Level/Synchronous Generator & Drive/Servomotor'.
Any ideas anyone?

  0 Comments

Sign in to comment.

1 Answer

Answer by Steve Miller on 15 Mar 2011
 Accepted Answer

Hi Chee Syn Ang,
Thanks for posting the error message. I created this example and the webinar in R2010a, and apparently something changed slightly in R2010b. I have found and fixed the problem, and the submission should be updated on MATLAB Central soon.
--Steve

  0 Comments

Sign in to comment.