Bonjour,
J'ai un integrateur qui me renvoie des valeurs très grandes relativement à un autre vecteur avec lequel je voudrais ploter les résultats
soit plot(x,y)
le problème c'est pas le plot, mais le solveur qui s’arrête à un moment donné disant après 41s. il me donne l'erreur suivant:
Derivative of block at time is Inf of NaN. Stopping Simulation. There may be a singularity in the solution. If not, try reducing the step size (either by reducing the fixed step size or by tightening the error tolerances.)
quand j'ai cherché sur le Net j'ai trouvé cette réponse:
There are a couple of things you can do to try to correct this situation. If possible, you may want to rescale the model so that the states are within a couple of orders of magnitude of one another.
Also, you can set specific error tolerances for the integrator blocks in your system. For more information, please refer to 'Specifying the Absolute Tolerance for the Block's Outputs' section in the Integrator block documentation by entering doc integrator
Pour la première solution: je pense que ça ne convient pas à mon cas car mon vecteur qui déborde commence par des zeros puis vers des valeurs de l'ordre de 10e-250 par exemple. donc si on veut le remettre à l'ordre les valeurs nulle vont aussi déporder du cotet négatif ou bien de l'ordre de 10e-250.
Pour la deuxième solution: je ne comprends pas comment choisr la précision
Merci d'avance
Partager