主要内容

使用频域检查块(GUI)的设计优化

This example shows how to optimize model parameters to meet frequency-domain requirements using theResponse Optimizer金宝app®Control Design™必须安装软件以优化设计以满足频域设计要求。

在此示例中,您在Check Bode Characteristics(Simulink Control Design)block. You optimize rectifier filter parameters to meet gain and bandwidth requirements by minimizing a custom objective.

Model Structure

这modelSdorectifier包括以下块:

  • 全波整流器堵塞 -AnAbsblock

  • Rectifier Filtersubsystem — RLC filter implemented using integrator and gain blocks

  • Filter Design Requirements堵塞 -Check Bode Characteristics(Simulink Control Design)block that specifies the gain and bandwidth design requirements

设计要求

这design optimization problem has several objectives. The design must:

  • Have a –3 dB bandwidth of at least 2 Hz

  • 将2 Hz - 60 Hz的频率范围内的增益限制为最多0 dB

  • 将增益限制为60 Hz以上最多–20 dB

  • Maximize the filter resistanceR

  • 最小化过滤器电感L

需求确保整流器滤波器组合的高频含量最少,迅速响应电压变化,并限制过滤电流。

指定设计要求

  1. Open theResponse Optimizerfor the model.

    sdotool('sdorectifier')

    Bode plot 1tab shows the gain and bandwidth requirements specified in theFilter Design Requirementsblock in the model. To see their values, double-click the block to open the Block Parameters dialog box, and select theBoundstab.

  2. 指定一个自定义目标,以最大程度地减少过滤器电感并最大化电阻。

    这custom objective is already defined in theSdorectifier_costfunction. The function accepts the design variablesRL和returns the objective to be minimized.

    Tip

    Type编辑sdorectifier_cost在里面command line to view this function.

    1. 在里面Newdrop-down list, select自定义要求

    2. 在“创建要求”窗口中指定以下值,然后单击好的:

      • 在里面Name编辑框,输入MaxMinRL

      • 在里面Type编辑框,选择Minimize the function output

      • 在里面功能编辑框,输入@sdorectifier_cost。这optimization solver calls the specified function handle.

      A new requirement variableMaxMinRLis created, and appears in the数据area in theResponse Optimizer。这Iteration plot 1标签显示的值MaxMinRLat each iteration during the optimization.

Specify Design Variables

When you optimize the model response, the software modifies the design variable values to meet the design requirements.

  1. 在里面Design Variables Setdrop-down list, selectNew

    SelectC,L, and R in the Create Design Variable Set window. Clickto add the selected parameters to a design variables set.

  2. Specify the value range for each design variable, and click好的:

    • C在里面range 1 µF–1 mF

    • L在里面range 1–500 mH

    • R在里面range 0.01–50 ohms

    A new variableDesignVarsis created, and appears in the数据area of theResponse Optimizer

优化设计

  1. To view the current response of the model, click图模型响应

    Bode plot 1窗口的Response Optimizershows that the model output goes out of the region bounded by the design requirement line segments.

    在里面电压scope window, you see that the filter voltage signal overshoots its steady-state value and contains significant harmonic content.

  2. Click优化

    Optimization convergedmessage in the Optimization Progress Report indicates that the optimization method found a solution to satisfy the filter bandwidth requirements.

    这harmonic content in the filter voltage signal is reduced from the initial design.

  3. Verify that the model meets the gain and bandwidth requirements.

    这plot displays the output of the last five iterations. The final response using the optimized parameter values appears as the thick blue line.

    优化的响应在于由设计需求线段界限的白色区域,因此满足了要求。

  4. ClickDesignVars在里面数据area and view the updated values in the变量预览area.

    这optimized values of the design variables are automatically updated in the Simulink model.

See Also

(Simulink Control Design)

相关话题