How to find variables solver assigned to simulink

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)

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

thank you for replying I chose the "automatic automatic solver" but it did not work and the student displayed a fault and the variables must change
Use the Auto Solver to Select a Solver and the wrong error in matlab
so choose a different solver, and try to reduce the maximum step size. What is the error message?
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

Asked:

on 7 Oct 2018

Commented:

on 10 Oct 2018

Community Treasure Hunt

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

Start Hunting!