MULPRT

<< Click to Display Table of Contents >>

Navigation:  Gekko User Manual > Gekko statements >

MULPRT

Previous pageReturn to chapter overviewNext page

The MULPRT statement prints variables/expressions, and can be thought of as a special version of PRT, to which the user is referred regarding syntax etc. Note that PRT, PLOT, SHEET and CLIP have the same syntax as MULPRT.

 

You can think of mulprt x; as simply being short for prt <m q> x;, that is, printing the absolute multiplier x-@x together with the relative multiplier (x/@x-1)*100, where @x is x from the Ref databank.

 


 

Example

 

MULPRT is often used to compare two databanks, for instance before and after a solve (SIM).

 

time 2011 2014;
= 10, 11, 13, 12;
@= 8, 9, 10, 11;  //Ref-bank
mulprt x;
prt <m q> x;
//                   x         % 
// 2011         2.0000     25.00 
// 2012         2.0000     22.22 
// 2013         3.0000     30.00 
// 2014         1.0000      9.09 
//
//                   x         % 
// 2011         2.0000     25.00 
// 2012         2.0000     22.22 
// 2013         3.0000     30.00 
// 2014         1.0000      9.09

 

As seen, mulprt x; and prt <m q> x; yield the same results. You may use mulprt <v> x; (v for verbose) to obtain more detailed multiplier output.

 

//                   x         %           <rn>      <rp>            <m>       <q> 
// 2011        10.0000         M         8.0000         M         2.0000     25.00 
// 2012        11.0000     10.00         9.0000     12.50         2.0000     22.22 
// 2013        13.0000     18.18        10.0000     11.11         3.0000     30.00 
// 2014        12.0000     -7.69        11.0000     10.00         1.0000      9.09 

 

The shorter prt <v> x; yields the same result.

 


 

Related options

 

See the PRT statement.

 


 

Related statements

 

CLIP, DECOMP, DISP, MULPRT, PLOT, PRT, SHEET, TELL