Documentation

## Choose Batch Linearization Methods

Simulink® Control Design™ software provides multiple tools and methods for batch linearization. Which tool and method you choose depends on your application requirements and software preferences. The following table describes the batch linearization workflows supported by Simulink Control Design software.

Application DescriptionOperating Point Computation OptionsLinearization Workflow

Your model has more than one operating condition that does not depend on any varying model parameters. Use this approach when the model operating conditions depend only on the model states and inputs.

• Batch trim your model for multiple operating point specifications, using a single model compilation when possible. Batch trimming is not supported in the Linear Analysis Tool.

• Trim the model separately for each operating point specification, which requires multiple model compilations. Use this option with the Linear Analysis Tool.

• Compute operating points at multiple simulation snapshot times.

1. Compute operating points.

2. Batch linearize the model at all operating points.

For an example, see:

Your model has a single operating condition, and you want to linearize the model at this operating point for varying model parameters. Examples of such an application include:

• Studying the effect of component tolerances on model dynamics.

• Examining controller robustness to variations in plant parameters.

• Trim the model for a single operating point specification.

• Compute an operating point at a simulation snapshot time.

1. Compute operating point.

2. Define parameter values for linearization.

3. Batch linearize the model at the computed operating point for the specified parameter variations.

For an example, see:

Your model has multiple operating conditions that depend on the values of varying model parameters. Use this approach when creating linear time-varying (LTV) models.

• Batch trim your model for the varying parameter values, using a single model compilation when possible. Batch trimming is not supported in the Linear Analysis Tool.

• Trim the model separately for each parameter value combination, which requires multiple model compilations. Use this option with the Linear Analysis Tool.

• Compute an operating point at a simulation snapshot for each parameter value combination.

1. Define parameter values for trimming.

2. Compute operating points for the specified parameter value variations.

3. Batch linearize the model at the computed operating points using the corresponding parameter value combinations.

For an example, see:

In addition to varying operating points and model parameters, you can obtain multiple transfer functions from your system by varying the linearization I/O configuration using an `slLinearizer` interface. You can do so for a model with a single operating point and no parameter variation, and also for any of the batch linearization options in the preceding table. For more information, see Vary Operating Points and Obtain Multiple Transfer Functions Using slLinearizer Interface and Vary Parameter Values and Obtain Multiple Transfer Functions.

### Choose Batch Linearization Tool

You can perform batch linearization using the Linear Analysis Tool or at the MATLAB® command line using either the `linearize` function or an `slLinearizer` interface. Use the following table to choose a batch linearization tool.

Reasons to Use Linear Analysis ToolReasons to Use `linearize`Reasons to Use `slLinearizer`
• You are new to Simulink Control Design software.

• You have experience with the Linear Analysis Tool.

• You do not want to batch trim your model, which is not supported in the Linear Analysis Tool.

• You are new to Simulink Control Design or have experience with Linear Analysis Tool, and you prefer to work at the command line or in a repeatable script.

The workflow for using `linearize` closely mirrors the workflow for linearizing models using the Linear Analysis Tool. When you generate MATLAB code from the Linear Analysis Tool to reproduce your session programmatically, this code uses `linearize`. You can easily modify this code to batch linearize a model.

• You are extracting linearizations for a single transfer function; that is, only one I/O set.

• You want to obtain multiple open-loop and closed-loop transfer functions without modifying the model or creating a linearization I/O set (using `linio`) for each transfer function.

• You want to obtain multiple open-loop and closed-loop transfer functions without recompiling the model for each transfer function.

You can also obtain multiple open-loop and closed-loop transfer functions using `linearize` or the Linear Analysis Tool. However, the software recompiles the model each time you change the I/O set.

## Related Topics
{"ft_lang_label":"__label__en","ft_lang_prob":0.82511735,"math_prob":0.9448026,"size":1862,"snap":"2019-43-2019-47","text_gpt3_token_len":353,"char_repetition_ratio":0.15877287,"word_repetition_ratio":0.043956045,"special_character_ratio":0.16809882,"punctuation_ratio":0.07973422,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.95940506,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-11-17T16:15:35Z\",\"WARC-Record-ID\":\"<urn:uuid:e09ffc81-d22c-4e8f-94d9-4b9f072b3a20>\",\"Content-Length\":\"68794\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:85e54f6a-a3e1-4310-84d3-9e1f0108e4fa>\",\"WARC-Concurrent-To\":\"<urn:uuid:cb252a7e-0f9e-4651-a984-e3ff07d2ea25>\",\"WARC-IP-Address\":\"23.5.129.95\",\"WARC-Target-URI\":\"https://es.mathworks.com/help/slcontrol/ug/choosing-batch-linearization-tools.html\",\"WARC-Payload-Digest\":\"sha1:GS4BS4LXXXLTDRISSJ2G63XVB2XQASC3\",\"WARC-Block-Digest\":\"sha1:GRDUMYSIBCUOOOIHGJZFVFXHN7UKUOHQ\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-47/CC-MAIN-2019-47_segments_1573496669183.52_warc_CC-MAIN-20191117142350-20191117170350-00322.warc.gz\"}"}