MV-3023: Optimize a Suspension
In this tutorial, you will learn how to setup an optimization problem using MotionView's Optimization Wizard for a suspension model.
- Defining point coordinates as design variables
- Defining a response type 'Root Mean Square Deviation' for matching curve
- Using the responses as objectives
- Running the optimization and comparing the results in HyperGraph
- Introduction
- In this tutorial, you will reproduce the suspension optimization problem in MV-3010 (Optimization using MotionView - HyperStudy). The location (y and z coordinates) of both inner tie-rod ball joint and outer tie-rod ball joint are changed so that the toe vs. ride height curve matches a given desired target curve.
Add Design Variables
In this step, you will add design variables for the optimization.
- In MotionView, open mv_3023_initial_susp_opt.mdl.
- In the Project Browser, right-click on Model and select Optimization Wizard from the context menu.
-
Under Design Variable, click the Points tab.
All points listed are shown below.
-
Make the y and z coordinates of inner tie-rod ball joint and outer tie-rod ball
joint designable.
Add Response Variables
In this step, you will add response variables to the optimization.
- Click on the Responses page.
- Click to add a response variable. Retain the default Label and Variable name and click OK.
-
Once the response variable is created, under Response Type, choose
Response Type, Root Mean Square Deviation.
This response needs three user inputs:
- Desired Curve - This is the target curve.
- Response Expression - This is the value you measure.
- Independent Variable - This defines the independent variable used to calculate the target value.
- For Desired Curve, click the Curve button and choose toe_rh.
- Activate the Specify independent variable check box. Click SolverVariable to choose toe_angle.
-
For Response Expression, enter the following expression for ride height:
`(DZ({MODEL.sys_frnt_susp.b_wheel.l.cm.idstring})-282.57)`
.You have finished creating the response. The user interface should appear as it does in Figure 4:
Add Objectives and Constraints
In this step, you will add an objective to the problem.
Navigate to the Goals page. Under Objectives, click
.
This will add an objective with the response rv_0. There are no
constraints in this problem, so the model is now ready to run.
Run the Optimization
In this step, you will run the optimization.
-
Navigate to the Solutions page to specify optimization
settings and run the analysis.
Note: The model is saved before running, and if this is not desired, the model can be saved with a different mdl file name before starting the optimization. This can be done by closing the wizard, saving the model with a different name and returning to the wizard again.
- Accept all default optimization setting for this run.
-
Click Save & Optimize to run the optimization.
Post-Process
In this step, you will post-process the results of the optimization.
-
Once the optimization process is complete, review the result by clicking on the
Review Results page.
The summary window should look as shown in Figure 7:You can also review the plots and animation by going to the Plot and Animation pages as we demonstrated in previous tutorials. For this optimization, it is worthwhile to plot the toe – ride height curve for different iterations and see how the curve approaches the target one.
-
Plot the toe-ride height curve for different iterations and see how it
approaches the target curve.
- Navigate to the initial design folder and load the .mrf file inside.
-
Change the Type, Request, and Component for x and y as shown in Figure 9.
-
Click Apply.
You should see a convex curve representing the 'toe-ride height' of the initial design.
- Go to the subfolder 'iter-18' (the last iteration).
-
Import the .mrf file and plot the curve with the same
setting.
The 'toe-ride height’ curve of optimized design overlaps with the target curve.