How to find variables solver assigned to simulink

3 views (last 30 days)
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

Answers (1)

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

Sign in to comment.

Categories

Find more on Configure Simulation Conditions in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!