Subscribe Bookmark RSS Feed

how to realize simulate to table and make table by scripting?

txin1

Community Member

Joined:

Jul 8, 2014

Hi,

I was using fit model->prediction profiler -> simulator -> simulate to table ->make table. Does anyone know how to realize 'simulate to table, then make table' by scripting? Your help is greatly appreciated!

Thanks,

Tinghui Xin

1 ACCEPTED SOLUTION

Accepted Solutions
Solution

A workaround is to navigate the report and "click" the button using JSL.

/* Open a sample data table */
Open( "$Sample_Data\Stochastic Optimization.jmp" );

/* Generate the Prediction Profiler and Simulator */
pflr = Profiler(
           Y( :Yield ),
           Profiler(
                      1,
                      Confidence Intervals( 1 ),
                      Desirability Functions( 0 ),
                      Yield << Response Limits(
                                      {Lower( 0.5, 0.05 ), Middle( 0.6, 0.75 ),
                                      Upper( 0.625, 0.815624999999997 ), Goal( Maximize ), Importance( 1 )}
                      ),
                      Term Value( Temperature( 530.05 ), Time( 0.1995, Min( 0.101 ) ) ),
                      Simulator(
                                      1,
                                      Factors(
                                            Temperature << Fixed( 530.010826771653 ),
                                            Time << Fixed( 0.244096456692913 )
                                      ),
                                      Responses( Yield << No Noise )
                      )
           ),
           Expand
);

/* Click the Make Table button */
Report( pflr )["Simulate to Table"][Button Box( 1 )] << Click( 1 );

/* Assign a handle and a name to the resulting table */
dt = Data Table( 1 );
dt << Set Name( "Simulated Table" );

Wendy
2 REPLIES
Jeff_Perkinson

Community Manager

Joined:

Jun 23, 2011

Unfortunately there is no scripting interface to the "Make Table" function. We'll consider adding this in a future release.

Sorry for the difficulty.

-Jeff

-Jeff
Solution

A workaround is to navigate the report and "click" the button using JSL.

/* Open a sample data table */
Open( "$Sample_Data\Stochastic Optimization.jmp" );

/* Generate the Prediction Profiler and Simulator */
pflr = Profiler(
           Y( :Yield ),
           Profiler(
                      1,
                      Confidence Intervals( 1 ),
                      Desirability Functions( 0 ),
                      Yield << Response Limits(
                                      {Lower( 0.5, 0.05 ), Middle( 0.6, 0.75 ),
                                      Upper( 0.625, 0.815624999999997 ), Goal( Maximize ), Importance( 1 )}
                      ),
                      Term Value( Temperature( 530.05 ), Time( 0.1995, Min( 0.101 ) ) ),
                      Simulator(
                                      1,
                                      Factors(
                                            Temperature << Fixed( 530.010826771653 ),
                                            Time << Fixed( 0.244096456692913 )
                                      ),
                                      Responses( Yield << No Noise )
                      )
           ),
           Expand
);

/* Click the Make Table button */
Report( pflr )["Simulate to Table"][Button Box( 1 )] << Click( 1 );

/* Assign a handle and a name to the resulting table */
dt = Data Table( 1 );
dt << Set Name( "Simulated Table" );

Wendy