How to find variables solver assigned to simulink

2 次查看(过去 30 天)
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

回答(1 个)

Fangjun Jiang
Fangjun Jiang 2018-10-10
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 个评论
Fangjun Jiang
Fangjun Jiang 2018-10-10
so choose a different solver, and try to reduce the maximum step size. What is the error message?
mona aljeagdaf
mona aljeagdaf 2018-10-10
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'

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Configure Simulation Conditions 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by