Skip to Main Content Skip to Search
Product Documentation

Performing the Tradeoff Calibration

Process Overview

You now fill the lookup table for spark angle by trading off gain in torque for reduction in NOX emissions.

The method that you use to fill the lookup table is

To perform the tradeoff calibration, follow the instructions in the next four sections:

  1. Check the normalizers.

  2. Set values for the other variables, AFR and EGR.

  3. Fill key operating points with values for spark angle.

  4. Fill the table by extrapolation.

Once you have completed the calibration, you can export the calibration for use in the electronic control unit.

Checking the Normalizers

A normalizer is the axis of the lookup table (which is the collection of breakpoints). The breakpoints of the normalizers are automatically spaced over the ranges of speed and load. These define the operating points that form the cells of the tradeoff table.

Expand the Tradeoff tree by clicking the plus sign in the display, so you can see the Spark table and its normalizers Speed and Load. Click to highlight either normalizer to see the normalizer view. A tradeoff calibration does not compare the model and the table directly, so you cannot space the breakpoints by reference to the model.

Setting Values for Other Variables

At each operating point, you must fill the values of the spark table. Both of the models depend on spark, AFR (labeled A, in the session), and EGR (labeled E in the session). You could set the values for AFR and EGR individually for each operating point in the table, but for simplicity you will set constant values for these model inputs.

To set constant values of AFR and EGR for all operating points,

  1. Click Variable Dictionary in the Data Objects pane.

  2. Click A and edit the Set Point to 14.3, the stoichiometric constant, and press Enter.

  3. Click E and change the Set Point to 0 and press Enter.

    You have set these values for every operating point in your tradeoff table. You can now fill the spark angle lookup table. The process is described next.

  4. Click Tradeoff in the Processes pane to return to the tradeoff view.

  5. Highlight the Spark table node in the Tradeoff tree display.

  6. In the lower pane, check that the value for A is 14.3, and the value for E is 0, as shown in the following example. You leave these values unchanged for each operating point.

For each operating point you change the values of spark to trade off the torque and NOX objectives; that is, you search for the best value of spark that gives acceptable torque within the emissions constraint. The following example illustrates the controls you use, and there are step-by-step instructions in the following section.

Filling Key Operating Points

You now fill the key operating points in the lookup table for spark angle.

The upper pane displays the lookup table, and the lower pane displays the behavior of the torque and NOX emissions models with each variable.

The object is to maximize the torque and restrict NOX emissions to below 250 g/hr.

Determining the Value of Spark

At each operating point, the behavior of the model alters. The following display shows the behavior of the models over the range of the input variables at the operating point selected in the table, where speed (N) is 4500 and load (L) is 0.5. You can show confidence intervals by selecting View > Display Confidence Intervals.

The top three graphs show how the torque model varies with the AFR (labeled A), the spark angle (SPK), and the EGR (E), respectively. The lower panes show how the NOX emissions model varies with these variables.

You are calibrating the Spark table, so the two spark (SPK) graphs are green, indicating that these graphs are directly linked to the currently selected lookup table.

  1. Select the operating point N = 4500 and L = 0.5 in the lookup table.

  2. Now try to find the spark angle that gives the maximum torque and restricts NOX emissions to below 250 g/hr. You can change the value of spark by clicking and dragging the orange line on the SPK graphs, or by typing values into the SPK edit box. You can change the values of any of the other tradeoff variables in the same way, but as you have already set constant values for A and E you should not change these. Try different values of spark and look at the resulting values of the torque and NOX models.

  3. Click to select the top SPK - TQ_Model graph (TQ_Model row, SPK column). When selected the graph is outlined as shown in the following example.

  4. Now click 'Find maximum of output' (   ) in the toolbar. This calculates the value of spark that gives the maximum value of torque. The following display shows the behavior of the two models when the spark angle is 26.4458, which gives maximum torque output.

    At this operating point, the maximum torque that is generated is 48.136 when the spark angle is 26.4989. However, the value of NOX is 348.968, which is greater than the restriction of 250 g/hr. Clearly you have to look at another value of spark angle.

  5. Click and drag the orange bar to change to a lower value of spark. Notice the change in the resulting values of the torque and NOX models.

  6. Enter 21.5 as the value of SPK in the edit box at the bottom of the SPK column.

    The value of the NOX emissions model is now 249.154. This is within the restriction, and the value of torque is 47.2478.

    At this operating point, this value of 21.5 degrees is acceptable for the spark angle lookup table, so you want to apply this point to your table.

  7. Press Ctrl+T or click   (Apply table filling values) in the toolbar to apply that value to the spark table.

    This automatically adds the selected value of spark to the table and turns this cell yellow. It is blue when selected, yellow if you click elsewhere. Look at the table legend to see what this means: yellow cells have been added to the extrapolation mask, and the tick mark indicates you saved this input value by applying it from the tradeoff. You can use the View menu to choose whether to display the legend.

  8. Now repeat this process of finding acceptable values of spark at four more operating points listed in the table following. In each case,

    • Select the cell in the spark table at the specified values of speed and load.

    • Enter the value of spark given in the table (the spark angles listed all satisfy the requirements).

    • Press Ctrl+T or click  (Apply table filling values) in the toolbar to apply that value to the spark table.

      Speed, NLoad, LSpark Angle, SPK

      2500

      0.3

      25.75

      3000

      0.8

      10.7

      5000

      0.7

      8.2

      6000

      0.2

      41.3

After you enter these key operating points, you can fill the table by extrapolation. This is described in the next section.

Filling the Table by Extrapolation

When you have calibrated several key operating points, you can produce a smooth extrapolation of these values across the whole table.

When you apply the value of the spark angle to the lookup table, the selected cell is automatically added to the extrapolation mask. This is why the cell is colored yellow. The extrapolation mask is the set of cells that are used as the basis for filling the table by extrapolation.

Click    in the toolbar to fill the table by extrapolation.

The lookup table is filled with values of spark angle.

The following figure displays the view after extrapolation over the table.

You could use these techniques to further improve the calibration and trade off torque and NOX to find the best values for each cell in the spark table.

For a more detailed description of tradeoff calibrations, see Tradeoff Calibrations in the CAGE documentation.

You can now export this calibration to file.

Exporting Calibrations

To export your table and its normalizers,

  1. Select the Spark node in the branch display.

  2. Select File > Export > Calibration.

  3. Choose the file type you want for your calibration. For the purposes of this tutorial, select Comma Separated Value (.csv).

  4. Enter tradeoff.csv as the file name and click Save.

This exports the spark angle table and the normalizers, Speed and Load.

You have now completed the tradeoff calibration tutorial.

  


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