Hi @Victor_G ,
Below is some JSL code that will do what you wish. It's nothing fancy or anything, and I did explicitly write out all the DOE commands to generate the SFD. You could do it this way, or you could also point to a report window and extract out the number box value from it. But, the <<Get Max Pro Values is a nice command and simplifies that part quite a bit.
Hopefully this helps you to get started at least.
Names Default to Here(1);
dt = current data table();
dtdoe =
DOE(
Space Filling Design,
{Add Response( Maximize, "Y", ., ., . ),
Add Factor( Continuous, 0, 0.5, "X1", 0 ),
Add Factor( Continuous, 0, 0.5, "X2", 0 ),
Add Factor( Continuous, 0, 0.5, "X3", 0 ),
Add Factor( Continuous, 0, 0.5, "X4", 0 ), Set Random Seed( 1622525169 ),
FFF Optimality Criterion( MaxPro ),
Space Filling Design Type( Fast Flexible Filling, 20 ), Simulate Responses( 0 ),
Set Run Order( Randomize ), Make Table}
);
MaxPro_value = dtdoe <<Get max Pro values;
Print(MaxPro_value[1]);
Hope this helps!,
DS