Error in sdo Aircraft Estimation

3 views (last 30 days)
Antonio Pelligra
Antonio Pelligra on 2 Dec 2021
Answered: Dhruv on 1 May 2024
Hello everyone, I have an error using the sdo tool, in fact when i run the example of the Aircraft parameters estimation I get the following error: "Error using sdo.solvers.fmincon.defaultSolverOptions (line
261)
Invalid default value for property 'MethodOptions' in class
'sdo.OptimizeOptions':
Solving an optimization problem with the "Method" option set
to 'fmincon' requires the Optimization Toolbox.
Error in modellofunzionante (line 52)
opt = sdo.OptimizeOptions;"
Could anyone please help me solving this bug?

Answers (1)

Dhruv
Dhruv on 1 May 2024
The error you are encountering indicates that MATLAB cannot find the ‘Optimization Toolbox’, which is required for the ‘fmincon’ method used in your script. To resolve this issue, ensure that the ‘Optimization Toolbox’ is installed and licensed on your MATLAB installation.
You can check the installed toolboxes by running the following command in the MATLAB Command Window
ver
-------------------------------------------------------------------------------------------------- MATLAB Version: 24.1.0.2570885 (R2024a) Update 1 MATLAB License Number: 40912989 Operating System: Linux 5.15.0-1052-aws #57~20.04.1-Ubuntu SMP Mon Jan 15 17:04:56 UTC 2024 x86_64 Java Version: Java 1.8.0_292-b10 with AdoptOpenJDK OpenJDK 64-Bit Server VM mixed mode -------------------------------------------------------------------------------------------------- MATLAB Version 24.1 (R2024a) Simulink Version 24.1 (R2024a) 5G Toolbox Version 24.1 (R2024a) Aerospace Blockset Version 24.1 (R2024a) Aerospace Toolbox Version 24.1 (R2024a) Antenna Toolbox Version 24.1 (R2024a) Audio Toolbox Version 24.1 (R2024a) Automated Driving Toolbox Version 24.1 (R2024a) Bioinformatics Toolbox Version 24.1 (R2024a) Bluetooth Toolbox Version 24.1 (R2024a) Communications Toolbox Version 24.1 (R2024a) Computer Vision Toolbox Version 24.1 (R2024a) Control System Toolbox Version 24.1 (R2024a) Curve Fitting Toolbox Version 24.1 (R2024a) DO Qualification Kit Version 24.1 (R2024a) DSP System Toolbox Version 24.1 (R2024a) Database Toolbox Version 24.1 (R2024a) Datafeed Toolbox Version 24.1 (R2024a) Deep Learning Toolbox Version 24.1 (R2024a) Econometrics Toolbox Version 24.1 (R2024a) Embedded Coder Version 24.1 (R2024a) Filter Design HDL Coder Version 24.1 (R2024a) Financial Instruments Toolbox Version 24.1 (R2024a) Financial Toolbox Version 24.1 (R2024a) Fixed-Point Designer Version 24.1 (R2024a) Fuzzy Logic Toolbox Version 24.1 (R2024a) Global Optimization Toolbox Version 24.1 (R2024a) HDL Coder Version 24.1 (R2024a) HDL Verifier Version 24.1 (R2024a) IEC Certification Kit Version 24.1 (R2024a) Image Acquisition Toolbox Version 24.1 (R2024a) Image Processing Toolbox Version 24.1 (R2024a) Industrial Communication Toolbox Version 24.1 (R2024a) Instrument Control Toolbox Version 24.1 (R2024a) LTE Toolbox Version 24.1 (R2024a) MATLAB Coder Version 24.1 (R2024a) MATLAB Compiler Version 24.1 (R2024a) MATLAB Compiler SDK Version 24.1 (R2024a) MATLAB Report Generator Version 24.1 (R2024a) Mapping Toolbox Version 24.1 (R2024a) Mixed-Signal Blockset Version 24.1 (R2024a) Model Predictive Control Toolbox Version 24.1 (R2024a) Navigation Toolbox Version 24.1 (R2024a) Optimization Toolbox Version 24.1 (R2024a) Parallel Computing Toolbox Version 24.1 (R2024a) Partial Differential Equation Toolbox Version 24.1 (R2024a) Phased Array System Toolbox Version 24.1 (R2024a) Powertrain Blockset Version 24.1 (R2024a) Predictive Maintenance Toolbox Version 24.1 (R2024a) RF Blockset Version 24.1 (R2024a) RF Toolbox Version 24.1 (R2024a) Requirements Toolbox Version 24.1 (R2024a) Risk Management Toolbox Version 24.1 (R2024a) Robotics System Toolbox Version 24.1 (R2024a) Robust Control Toolbox Version 24.1 (R2024a) Sensor Fusion and Tracking Toolbox Version 24.1 (R2024a) SerDes Toolbox Version 24.1 (R2024a) Signal Processing Toolbox Version 24.1 (R2024a) SimBiology Version 24.1 (R2024a) SimEvents Version 24.1 (R2024a) Simscape Version 24.1 (R2024a) Simscape Driveline Version 24.1 (R2024a) Simscape Electrical Version 24.1 (R2024a) Simscape Fluids Version 24.1 (R2024a) Simscape Multibody Version 24.1 (R2024a) Simulink 3D Animation Version 24.1 (R2024a) Simulink Check Version 24.1 (R2024a) Simulink Code Inspector Version 24.1 (R2024a) Simulink Coder Version 24.1 (R2024a) Simulink Control Design Version 24.1 (R2024a) Simulink Coverage Version 24.1 (R2024a) Simulink Design Optimization Version 24.1 (R2024a) Simulink Design Verifier Version 24.1 (R2024a) Simulink Desktop Real-Time Version 24.1 (R2024a) Simulink PLC Coder Version 24.1 (R2024a) Simulink Real-Time Version 24.1 (R2024a) Simulink Report Generator Version 24.1 (R2024a) Simulink Test Version 24.1 (R2024a) Stateflow Version 24.1 (R2024a) Statistics and Machine Learning Toolbox Version 24.1 (R2024a) Symbolic Math Toolbox Version 24.1 (R2024a) System Identification Toolbox Version 24.1 (R2024a) Text Analytics Toolbox Version 24.1 (R2024a) Vehicle Dynamics Blockset Version 24.1 (R2024a) Vehicle Network Toolbox Version 24.1 (R2024a) Vision HDL Toolbox Version 24.1 (R2024a) WLAN Toolbox Version 24.1 (R2024a) Wavelet Toolbox Version 24.1 (R2024a) Wireless HDL Toolbox Version 24.1 (R2024a)
If the ‘Optimization Toolbox’ is not listed, you will need to install it through the Add-Ons menu (Home tab > Add-Ons > Get Add-Ons). If the toolbox is installed but the error persists, try updating MATLAB and the toolbox to the latest version.

Categories

Find more on Introduction to Installation and Licensing 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!