Share your ideas for the JMP Scripting Unsession at Discovery Summit by September 17th. We hope to see you there!
Choose Language Hide Translation Bar
Highlighted
Marc_1
Level II

Capture DoE Design Evaluation Efficiency Output in JSL

Hi!

 

I am trying to capture the design efficiencies from the 'Design Diagnostics' Outline Box in the Custom Design platform. I have managed to obtain the 'D Efficiency' output, but I can't seem to correctly alter the indexing to obtain the others. I've looked closely at the associated Property Tree, but the numeric references don't seem to be what I need to use - as I get error when replacing the 1's below with any other number.

 

Here is a code example to generate a DoE and capture the D Efficiency number:

test=DOE(
	Custom Design,
	Add Response( Maximize, "Y", ., ., . ),
	Add Factor( Continuous, -1, 1, "X1", 0 ),
	Add Factor( Continuous, -1, 1, "X2", 0 ),
	Add Factor( Continuous, -1, 1, "X3", 0 ), 
	Set Random Seed( 54 ),
	Add Constraint( [1 1 0 1, 1 0 1 1] ), 
	Add Term( {1, 0} ),
	Set Sample Size( 8 ), 
	Simulate Responses( 1 ),
	Save X Matrix( 1 ),
	Make Design,
	//Make Table,
	
);

test2=report(test);

test2[Outline box("Design Evaluation")][Outline Box("Design Diagnostics")][List Box(1)][LineUpBox(1)][ListBox(1)][NumberColBox(1)]<< Get(1);

How do I alter the above to print-out the other efficiency numbers? Also, is there any easier way to capture these numbers within JSL?

 

 

Any help would be appreciated!

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Capture DoE Design Evaluation Efficiency Output in JSL

That outline is complicated. I think you have to get individual efficiencies. Like this:

 

Names Default To Here( 1 );

test = DOE(
	Custom Design,
	Add Response( Maximize, "Y", ., ., . ),
	Add Factor( Continuous, -1, 1, "X1", 0 ),
	Add Factor( Continuous, -1, 1, "X2", 0 ),
	Add Factor( Continuous, -1, 1, "X3", 0 ),
	Set Random Seed( 54 ),
	Add Constraint( [1 1 0 1, 1 0 1 1] ),
	Add Term( {1, 0} ),
	Set Sample Size( 8 ),
	Simulate Responses( 1 ),
	Save X Matrix( 1 ),
	Make Design, 
	//Make Table,
	
);

test2 = Report( test );

test2["Design Evaluation"] << Close( 0 );
test2["Design Diagnostics"] << Close( 0 );
d eff = test2["Design Diagnostics"][NumberColBox( 1 )] << Get( 1 );
g eff = test2["Design Diagnostics"][NumberColBox( 2 )] << Get( 1 );
e eff = test2["Design Diagnostics"][NumberColBox( 3 )] << Get( 1 );

I am not sure how you want to use them. Do you want to collect them in a data table? Do you want to present them in a new window?

 

Learn it once, use it forever!

View solution in original post

4 REPLIES 4
Highlighted

Re: Capture DoE Design Evaluation Efficiency Output in JSL

That outline is complicated. I think you have to get individual efficiencies. Like this:

 

Names Default To Here( 1 );

test = DOE(
	Custom Design,
	Add Response( Maximize, "Y", ., ., . ),
	Add Factor( Continuous, -1, 1, "X1", 0 ),
	Add Factor( Continuous, -1, 1, "X2", 0 ),
	Add Factor( Continuous, -1, 1, "X3", 0 ),
	Set Random Seed( 54 ),
	Add Constraint( [1 1 0 1, 1 0 1 1] ),
	Add Term( {1, 0} ),
	Set Sample Size( 8 ),
	Simulate Responses( 1 ),
	Save X Matrix( 1 ),
	Make Design, 
	//Make Table,
	
);

test2 = Report( test );

test2["Design Evaluation"] << Close( 0 );
test2["Design Diagnostics"] << Close( 0 );
d eff = test2["Design Diagnostics"][NumberColBox( 1 )] << Get( 1 );
g eff = test2["Design Diagnostics"][NumberColBox( 2 )] << Get( 1 );
e eff = test2["Design Diagnostics"][NumberColBox( 3 )] << Get( 1 );

I am not sure how you want to use them. Do you want to collect them in a data table? Do you want to present them in a new window?

 

Learn it once, use it forever!

View solution in original post

Highlighted
Marc_1
Level II

Re: Capture DoE Design Evaluation Efficiency Output in JSL

Thanks so much!

 

Yes, I want to collect them into columns in a data table. In particular, I'd like to loop over the design generation - changing the seed and No. of runs - and capture the various outputs.

Highlighted

Re: Capture DoE Design Evaluation Efficiency Output in JSL

Do you need more help or do you know how to iterate over the changes and how to collect the efficiencies into a data table?

Learn it once, use it forever!
Highlighted
Marc_1
Level II

Re: Capture DoE Design Evaluation Efficiency Output in JSL

Oh, I have that part - I just couldn't figure out how to reference the right boxes in that report. I kept getting errors when trying to change the indices ( or subscripts? ).

Thanks again!
Article Labels

    There are no labels assigned to this post.