Hi,
I wrote a script to automatically generate DOE table. How do close the DOE? I used closeall (data tables) and it won't work. Thanks
Thanks Cameron. It works fine now.
That's because you set obj equal to a string. Take "obj =" out of there and stick it outside of the Eval(Parse()) statements (i.e. obj = Eval(Parse("DOE( ....)")))
Hi,
Thanks. The script works fine with your example. Here is my script:
Eval(
Parse(
obj = "DOE(
Custom Design,
{
" || AddFactor ||
",
Set Random Seed( 1682521244 ),
Number of Starts( 1 ),
// Add Term( {1, 0} ), Add Term( {1, 1} ),
// Add Term( {2, 1} ), Add Term( {3, 1} ),
"
|| AddTerm ||
",
// Add Alias Term( {1, 1}, {2, 1} ),
// Add Alias Term( {1, 1}, {3, 1} ),
// Add Alias Term( {2, 1}, {3, 1} ),
"
|| AddAlias || "
" || SampleSize ||
", Simulate Responses( 0 ), Save X Matrix( 0 ), Make Design,Set Run Order(Randomize), Make Table}
);"
)
);
obj << Close window;
I get an error with Close widow. I appreciate you help. Thanks.
How do you close the DOE platform report window or the table? If the platform, here's an example:
doe_rprt = 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( 1366917127 ),
Number of Starts( 1 ), Add Term( {1, 0} ), Add Term( {1, 1} ),
Add Term( {2, 1} ), Add Term( {3, 1} ), Add Term( {1, 2} ),
Add Term( {1, 1}, {2, 1} ), Add Term( {2, 2} ), Add Term( {1, 1}, {3, 1} ),
Add Term( {2, 1}, {3, 1} ), Add Term( {3, 2} ), Set Sample Size( 64 ),
Optimality Criterion( 2 ), Make Design, Make Table}
);
doe_rprt << Close Window;