Skip to Main Content Skip to Search
Product Documentation

Create Point Optimizations in CAGE

Introduction

This section takes you through the steps to create two separate point optimizations for use in combination in a drive cycle optimization. You create two optimizations so you can apply the peak pressure constraint only where it is relevant, at full load conditions.

  1. Create a constrained point optimization to minimize BSFC (brake-specific fuel consumption) for each part load point.

  2. Create a constrained point optimization to minimize BSFC for each full load point.

You use the results from both point optimizations as start points for a sum optimization.

Load Models to Optimize

To open CAGE and load the models for the optimization, follow these steps:

  1. Enter cage to open the CAGE browser.

  2. Load models to optimize. Select File > Import From Project. The CAGE Import Tool opens.

  3. Click Import From Project File.

  4. Locate the mbctraining folder and open the file DieselPointByPoint.mat.

  5. Press Shift+click to select all models in the list, and click Import Selected Items. Then, click OK in the dialog box that appears next to import all the models. Then, close the Import Tool.

    CAGE displays the variable connections for your imported point-by-point models.

Create Part Load Point Optimization

To create the optimization, you perform the following tasks:

Select Model and Parameters for Optimization

  1. Select Tools > Create Optimization From Model.

    The Create Optimization From Model wizard opens.

  2. Select BSFC as the model to optimize, and click Next.

  3. Leave all the defaults as shown to create a point optimization that:

    • Minimizes BSFC

    • Using the Model operating points as the Data source

    • With fixed variables SPEED and BTQ

    • Selects all other variables as free variables for CAGE to optimize

    • Adds the boundary model as a constraint

  4. Click Finish to create the optimization.

    CAGE displays your optimization. Rename your optimization to BSFC_PartLoad and continue to "Specify Number of Runs".

Specify Number of Runs

Observe the model operating points in the Optimization Point Set pane. Remove two of the runs. Later, your second optimization applies another constraint at the full load points.

  1. Right-click the first run, where SPEED = 2200 and BTQ = 1263, and select Delete Runs.

  2. Right-click the fourth run, where SPEED = 1600 and BTQ = 1550, and select Delete Runs.

Your optimization now has five runs. Continue to "Add a Constraint to the Optimization".

Add a Constraint to the Optimization

Add a constraint for air/fuel ratio before running the optimization. Follow these steps:

  1. Right-click the Constraints pane, and select Add Constraint.

  2. Select Constraint type Range.

  3. Select Show models from the drop-down menu on the Bound Expression tab.

  4. Select AFR in the model list.

  5. Edit the constraint name to AFR.

  6. Click the Lower Bound tab, and select the Vector option button. Ensure the Constraint description matches the following example, and click OK.

  7. When the variable AFR_LowerBound appears in the Fixed Variables pane, copy and paste the following values into the AFR_LowerBound column.

    AFR_LowerBound
    27.5
    30.0
    0.0
    20.0
    22.5

    Verify that your fixed variable values look like those in the following image.

Run the Optimization

You can now run your optimization:

  1. Select Optimization > Run.

  2. After CAGE calculates the optimization and displays the output, view the results.

Create Full-Load Point Optimization

Creating the full-load point optimization requires you to set up the optimization, define runs at full load, add the peak pressure constraint, and define required variables.

Set Up the Optimization

To set up the optimization, follow these steps:

  1. Select Tools > Create Optimization From Model.

    The Create Optimization From Model wizard opens.

  2. Select BSFC as the model to optimize, and click Next.

  3. Leave all the defaults, and click Finish to create the optimization.

  4. Rename the new optimization to BSFC_FullLoad.

  5. Inspect the model operating points in the Optimization Point Set pane. Because this optimization uses only the full-load points, right-click and delete all runs except where SPEED = 2200 and BTQ = 1263; SPEED = 1600, and BTQ = 1550. (Delete five runs total.)

  6. Import the AFR constraint from the previous optimization.

    1. Right-click the Constraints pane, and select Import Constraints.

    2. Select the AFR constraint, and click OK.

Import Variables to Define Constraint and Weights

You need some new variables to define a constraint and also to define some weights for the multiregion optimization. To save time you can import the variables and weights from the example project, rather than defining them manually, as follows:

  1. Select File > Import From Project. The CAGE Import Tool opens.

  2. Click Import From Project File.

  3. Locate the mbctraining folder and open the file DieselPointByPoint.cag.

  4. Select Dataset from the Type drop-down list.

  5. Select DriveCycle10 in the list, and click Import Selected Items. In the following dialog box, you also import the variables you need for later steps:

    • BSFC_weights

    • BSNOX_DriveCycle10_weights

    Click OK to import the data set and variables.

  6. Select Variable from the Type drop-down list, select MaxPressure in the list, and click Import Selected Items. Click OK in the following dialog box to import the variable.

    Close the Import Tool. You use all the items you imported in later steps.

Add Peak Pressure Constraint and Define Fixed Variable Values

Return to the BSFC_FullLoad optimization node, and add a peak pressure constraint, using the following steps:

  1. Right-click the Constraints pane, and select Add Constraint.

  2. Select the PEAKPRESS model.

  3. Select the CAGE item option button, and then select Show variables from the drop-down menu.

  4. Select MaxPressure in the variable list.

  5. Rename the constraint to PEAKPRESS, and click OK.

  6. Copy and paste the following values into the fixed variables columns for AFR_LowerBound and MaxPressure.

    AFR_LowerBoundMaxPressure
    25.5 15
    20 18

When you finish defining all required variables, select Optimization > RunThen, continue next to "Create Multiregion Sum Optimization".

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS