23.01.2015 Views

Download - Wolfram Research

Download - Wolfram Research

Download - Wolfram Research

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2.10 Nonlinear Symbolic Approximation 175<br />

DT analysis mode for error checking, specifying sweep ranges for both input values VLOAD and II.<br />

NonlinearSetup performs a numerical reference simulation and stores the result in the returned<br />

DAEObject. These numerical values are used automatically to calculate the error in subsequent<br />

simplification steps.<br />

In[20]:= step2 = NonlinearSetup[step1, {II, VLOAD}, {I$VLOAD},<br />

DT −> {Range −><br />

{{VLOAD, 0., 3.5, 0.5}, {II, 0., 0.001, 0.0002}} }]<br />

Out[20]= DAEDC, 6 6 <br />

Cancelling Terms<br />

Once we have set up the DAE system we call CancelTerms (Section 3.12.3) where we specify an<br />

error bound for the output variable. CancelTerms then deletes terms in the equation system using<br />

this error bound. Afterwards we again use Statistics to inspect the complexity reduction achieved<br />

by CancelTerms.<br />

In[21]:= step3 = CancelTerms[step2, {DT −> {I$VLOAD −> 25.*^−6}}]<br />

Out[21]= DAEDC, 6 6 <br />

In[22]:= Statistics[step3]<br />

Number of equations : 6<br />

Number of variables : 6<br />

Length of equations : {2, 2, 2, 4, 2, 1}<br />

Terms with derivatives : 0<br />

Sums in levels : {12, 4}<br />

Note that CancelTerms reduces the number of terms drastically.<br />

Compressing Equations again<br />

Deletion of terms changes the equations in such a way that it is often possible to further solve<br />

equations for some variables. Thus, we can again try to eliminate variables using<br />

CompressNonlinearEquations. Here, two more equations can be removed from the system. Note<br />

that CompressNonlinearEquations automatically retrieves the settings made by NonlinearSetup,<br />

so there is no need to specify the variable of interest I$VLOAD as a second argument. Afterwards we<br />

drop those parameters from the design point which no longer appear in the equation system using<br />

UpdateDesignPoint (Section 3.6.14).<br />

In[23]:= step4 = CompressNonlinearEquations[step3]<br />

Out[23]= DAEDC, 4 4

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!