使用频域检查块(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
需求确保整流器滤波器组合的高频含量最少,迅速响应电压变化,并限制过滤电流。
指定设计要求
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.
指定一个自定义目标,以最大程度地减少过滤器电感并最大化电阻。
这custom objective is already defined in the
Sdorectifier_cost
function. The function accepts the design variablesR和L和returns the objective to be minimized.Tip
Type
编辑sdorectifier_cost
在里面command line to view this function.在里面Newdrop-down list, select自定义要求。
在“创建要求”窗口中指定以下值,然后单击好的:
在里面Name编辑框,输入
MaxMinRL
。在里面Type编辑框,选择
Minimize the function output
在里面功能编辑框,输入
@sdorectifier_cost
。这optimization solver calls the specified function handle.
A new requirement variable
MaxMinRL
is created, and appears in the数据area in theResponse Optimizer。这Iteration plot 1标签显示的值MaxMinRL
at 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.
在里面Design Variables Setdrop-down list, selectNew。
Select
C
,L
, and R in the Create Design Variable Set window. Clickto add the selected parameters to a design variables set.Specify the value range for each design variable, and click好的:
C
在里面range 1 µF–1 mFL
在里面range 1–500 mHR
在里面range 0.01–50 ohms
A new variable
DesignVars
is created, and appears in the数据area of theResponse Optimizer。
优化设计
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.Click优化。
这
Optimization converged
message 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.
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.
优化的响应在于由设计需求线段界限的白色区域,因此满足了要求。
Click
DesignVars
在里面数据area and view the updated values in the变量预览area.这optimized values of the design variables are automatically updated in the Simulink model.
See Also
Check Bode Characteristics(Simulink Control Design)