Subscribe Bookmark RSS Feed

JSL code to maximize desirability of prediction profiler

orthogonal

Community Trekker

Joined:

Aug 30, 2013

I would like to be able to use JSL to maximize desirability of the prediction profiler in the custom design DOE display window.  I've figured out how to grab the variance value from the prediction profiler (see code below) but can't figure out how to launch the built in script to maximize.  Any ideas?

mydoe=DOE(

  Custom Design,

  {Add Response( Maximize, "Y", ., ., . ),

  Add Factor( Continuous, -1, 1, "X1", 0 ),

  Add Factor( Continuous, -1, 1, "X2", 0 ), Set Random Seed( 625275281 ),

  Number of Starts( 3200 ), Add Term( {1, 0} ), Add Term( {1, 1} ),

  Add Term( {2, 1} ), Add Alias Term( {1, 1}, {2, 1} ), Set Sample Size( 8 ),

  Make Design}

);

displayBoxDoe = mydoe << Report;

//need to maximize desirabilities somehow

show properties(displayBoxDoe[outlinebox(9)]);

//The code below get the predicted variance from the prediction profiler

pplr_val = num(displayBoxDoe[textbox(3)]<<get text);

print(pplr_val);

2 REPLIES
michaelhaslam_p

Community Trekker

Joined:

Sep 15, 2013

Orthogonal,

The display box that you reference with "displayBoxDoe" is, of course, not the same as the platform that you reference with "mydoe".  Message such as maximize desirability are sent to the platform.

Having said this, I do not believe that that prediction profiler in the DOE platform is scriptable.  That is, it is not open to messages as far as I can tell.

Michael

orthogonal

Community Trekker

Joined:

Aug 30, 2013

Michael,

Thanks for your help.

-Orthogonal