Thanks a lot for your response, it is an interesting approach to solve my issue (I was a little bit desperate). Just a comment and maybe a piece of advice from you, how do you manage when A concentration range (10-15) is really different than the B concentration range (800-1000). The number of runs between A and B are really unbalanced (3 runs with A and 17 with B). It seems to me strange. Here below an example of code.
What do you think?
Thanks again for your prompt response.
DOE(
Custom Design,
{Add Response( Maximize, "Y", ., ., . ),
Add Factor( Continuous, -1, 1, "X1", 0 ),
Add Factor( Continuous, -1, 1, "X2", 0 ),
Add Factor( Categorical, {"A", "B"}, "X3", 0 ),
Add Factor( Continuous, 10, 1000, "Conc", 0 ), Set Random Seed( 2111591509 ),
Number of Starts( 1453 ), Add Term( {1, 0} ), Add Term( {1, 1} ),
Add Term( {2, 1} ), Add Term( {3, 1} ), Add Term( {4, 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( {1, 1}, {4, 1} ),
Add Term( {2, 1}, {4, 1} ), Add Term( {3, 1}, {4, 1} ), Add Term( {4, 2} ),
Add Alias Term( {1, 1}, {2, 1} ), Add Alias Term( {1, 1}, {3, 1} ),
Add Alias Term( {1, 1}, {4, 1} ), Add Alias Term( {2, 1}, {3, 1} ),
Add Alias Term( {2, 1}, {4, 1} ), Add Alias Term( {3, 1}, {4, 1} ),
Set Sample Size( 20 ), Disallowed Combinations(
X3 == 1 & Conc > 15 | X3 == 2 & Conc < 800
), Optimality Criterion( 2 ), Make Design, Set Run Order( Randomize ),
Make Table}
)