How to find variables solver assigned to simulink

1 visualización (últimos 30 días)
mona aljeagdaf
mona aljeagdaf el 7 de Oct. de 2018
Comentada: mona aljeagdaf el 10 de Oct. de 2018
I have a problem choosing the type of solver in Simulink. Whenever I want to run the model does not work and ask me to change the type and variables of solver or ode and I have other frequently without reaching the solution please help

Respuestas (1)

Fangjun Jiang
Fangjun Jiang el 10 de Oct. de 2018
In your Simulink model, click menu "Simulation", "Model Configuration Parameters"
Select "Solver" on the left panel, on the right, under "Solver options"
Choose "Variable-step" for "Type", try "auto (Automatic solver selection)" for "Solver".
This is probably what you need. Or you can try different selections available to you in the list of "Solver"
  4 comentarios
Fangjun Jiang
Fangjun Jiang el 10 de Oct. de 2018
so choose a different solver, and try to reduce the maximum step size. What is the error message?
mona aljeagdaf
mona aljeagdaf el 10 de Oct. de 2018
Warning: Block diagram 'robot_arm222' contains 1 algebraic loop(s). To see more details about the loops use the command line Simulink debugger by typing "sldebug robot_arm222" in the MATLAB command window. To eliminate this message, set the Algebraic loop option in the Diagnostics page of the Simulation Parameters Dialog to "None" > In robot_arm22222222 at 58 Found algebraic loop containing: 'robot_arm222/robot_arm_Subsystem/Gain' 'robot_arm222/robot_arm_Subsystem/Saturation1' (discontinuity) 'robot_arm222/robot_arm_Subsystem/Fuzzy Logic Controller with Ruleviewer/Fuzzy Logic Controller/FIS S-function' 'robot_arm222/robot_arm_Subsystem/Gain3' 'robot_arm222/robot_arm_Subsystem/Saturation' (discontinuity) 'robot_arm222/robot_arm_Subsystem/Ground/_mech_engine/Block#1' 'robot_arm222/robot_arm_Subsystem/Joint Sensor_1/gain_1' 'robot_arm222/robot_arm_Subsystem/Sum' (algebraic variable) Warning: Discontinuities detected within algebraic loop(s), may have trouble solving > In robot_arm22222222 at 58 Error using robot_arm22222222 (line 58) Unable to reduce the step size without violating a minimum step size of 1.0E-25 at time 0.00375351289001624 for model 'robot_arm222'

Iniciar sesión para comentar.

Categorías

Más información sobre Configure Simulation Conditions en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by