looptuneOptions
Set options for looptune
Description
 Use looptuneOptions to create an option set for the
                looptune function.
Creation
options = looptuneOptionslooptune command.
options = looptuneOptions(Name,Value)
Properties
Target gain margin, in decibels, specified as a scalar.
                            GainMargin specifies the required gain margin for the
                        tuned control system. For MIMO control systems, the gain margin is the
                        multiloop disk margin. See Stability Analysis Using Disk Margins (Robust Control Toolbox) for the
                        definition of the multiloop disk margin.
Target phase margin, in degrees, specified as a scalar.
                            PhaseMargin specifies the required phase margin for
                        the tuned control system. For MIMO control systems, the phase margin is the
                        multiloop disk margin. See Stability Analysis Using Disk Margins (Robust Control Toolbox) for the
                        definition of the multiloop disk margin.
 Amount of information to display during looptune
                        runs, specified as one of these values:
- 'off'— Run in silent mode, displaying no information during or after the run.
- 'iter'— Display optimization progress after each iteration. The display includes the value of the objective parameter- gamafter each iteration. The display also includes a- Progressvalue, indicating the percent change in- gamfrom the previous iteration.
- 'final'— Display a one-line summary at the end of each optimization run. The display includes the minimized value of- gamand the number of iterations for each run.
Maximum number of iterations in each optimization run, specified as a positive scalar.
Number of additional optimizations starting from random values of the free parameters in the controller, specified as a nonnegative scalar.
If RandomStart = 0,
                            looptune performs a single optimization run
                        starting from the initial values of the tunable parameters. Setting
                            RandomStart = N > 0 runs
                            N additional optimizations starting from
                            N randomly generated parameter values. 
looptune tunes by finding a local minimum of a gain
                        minimization problem. To increase the likelihood of finding parameter values
                        that meet your design requirements, set
                            RandomStart > 0. You can then use the
                        best design that results from the multiple optimization runs.
Use with UseParallel = true to distribute independent
                        optimization runs among MATLAB® workers (requires Parallel Computing Toolbox™ software).
Option to enable parallel computing, specified as the comma-separated pair
                        consisting of 'UseParallel' and false
                        or true. 
When you use the RandomStart option to run multiple
                        randomized optimization starts when tuning a structured controller, you can
                        also use parallel computing to distribute the optimization runs among
                        workers in a parallel pool. When you set this option to
                            true, if there is an available parallel pool, then
                        the software performs independent optimization runs concurrently among
                        workers in that pool. If no parallel pool is available, one of the following
                        occurs: 
- If you select Automatically create a parallel pool in your Parallel Computing Toolbox preferences (Parallel Computing Toolbox), then the software starts a parallel pool using the settings in those preferences. 
- If you do not select Automatically create a parallel pool in your preferences, then the software performs the optimization runs successively, without parallel processing. 
Using parallel computing requires Parallel Computing Toolbox software.
Target value for the objective parameter gam, specified
                        as a scalar. 
The looptune command converts your design
                        requirements into normalized gain constraints. The command then tunes the
                        free parameters of the control system to drive the objective parameter
                            gam below 1 to enforce all requirements.
The default TargetGain = 1 ensures that the
                        optimization stops as soon as gam falls below 1. Set
                            TargetGain to a smaller or larger value to continue
                        the optimization or start sooner, respectively. 
Relative tolerance for termination, specified as a scalar.
The optimization terminates when the objective parameter
                            gam decreases by less than TolGain
                        over 10 consecutive iterations. Increasing TolGain speeds
                        up termination, and decreasing TolGain yields tighter
                        final values.
Maximum closed-loop natural frequency, specified as a positive scalar.
Setting MaxFrequency constrains the closed-loop poles
                        to satisfy |p| <  MaxFrequency. 
To allow looptune to choose the closed-loop poles
                        automatically, based upon the system's open-loop dynamics, set
                            MaxFrequency = Inf. To prevent unwanted
                        fast dynamics or high-gain control, set MaxFrequency to a
                        finite value. 
Specify MaxFrequency in units of
                            1/TimeUnit, relative to the
                            TimeUnit property of the system you are tuning.
                    
Minimum decay rate for closed-loop poles, specified as a positive scalar
Constrains the closed-loop poles to satisfy
                            Re(p) < -MinDecay. Increase this value
                        to improve the stability of closed-loop poles that do not affect the
                        closed-loop gain due to pole/zero cancellations.
Specify MinDecay in units of
                            1/TimeUnit, relative to the
                            TimeUnit property of the system you are tuning.
                    
Examples
Create an options set for a looptune run using three random restarts. Also, set the target gain and phase margins to 6 dB and 50 degrees, respectively, and limit the closed-loop pole magnitude to 100. 
options = looptuneOptions('RandomStart',3','GainMargin',6,... 'PhaseMargin',50,'SpecRadius',100);
Alternatively, use dot notation to set the values of options. 
options = looptuneOptions; options.RandomStart = 3; options.GainMargin = 6; options.PhaseMargin = 50; options.SpecRadius = 100;
Configure an option set for a looptune
                    run using 20 random restarts. Execute these independent optimization runs
                    concurrently on multiple workers in a parallel pool. 
If you have the Parallel Computing Toolbox software installed, you can use parallel computing to speed up
                        looptune tuning of fixed-structure control systems. When
                    you run multiple randomized looptune optimization starts,
                    parallel computing speeds up tuning by distributing the optimization runs among
                    workers.
If Automatically create a parallel pool is not
                        selected in your Parallel Computing Toolbox preferences (Parallel Computing Toolbox), manually start a parallel pool using
                            parpool (Parallel Computing Toolbox). For example:
parpool;
If Automatically create a parallel pool is selected in your preferences, you do not need to manually start a pool.
Create a looptuneOptions set that specifies 20 random
                        restarts to run in parallel.
options = looptuneOptions('RandomStart',20,'UseParallel',true);
Setting UseParallel to true enables
                        parallel processing by distributing the randomized starts among available
                        workers in the parallel pool.
Use the looptuneOptions set when you call
                            looptune. For example, suppose you have already
                        created a plant model G0 and tunable controller
                            C0. In this case, the following command uses parallel
                        computing to tune the control system of G0 and
                            C0 to the target crossoverwc. 
[G,C,gamma] = looptune(G0,C0,wc,options);
Version History
Introduced in R2011bPrior to R2016a, this functionality required a Robust Control Toolbox™ license.
See Also
looptune | looptune (for slTuner) (Simulink Control Design) | diskmargin (Robust Control Toolbox)
Topics
- Stability Analysis Using Disk Margins (Robust Control Toolbox)
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)