Hi @basti41aa,
Welcome in the Community !
Your constraint is ok mathematically, but may not be correct regarding scripting language JSL.
I have good results defining the constraint using "Specify linear constraints" panel and this expression :
{1 * :RA + -1 * :FA >= 5}
I obtain this design (when specifying only main effects in the model using Custom Design platform) :
Here is the script to generate the design (and datatable attached) :
DOE(
Custom Design,
{Add Response( Maximize, "Y", ., ., . ),
Add Factor( Continuous, 90, 185, "RA", 0 ),
Add Factor( Continuous, 90, 140, "FA", 0 ),
Add Factor( Continuous, 200, 300, "CE", 0 ),
Add Factor( Continuous, 100, 200, "PE", 0 ),
Add Factor( Continuous, 100, 200, "BP", 0 ), Set Random Seed( 5840095 ),
Number of Starts( 51664 ), Add Constraint( [-1 1 0 0 0 -5] ), Add Term( {1, 0} ),
Add Term( {1, 1} ), Add Term( {2, 1} ), Add Term( {3, 1} ), Add Term( {4, 1} ),
Add Term( {5, 1} ), Add Alias Term( {1, 1}, {2, 1} ),
Add Alias Term( {1, 1}, {3, 1} ), Add Alias Term( {1, 1}, {4, 1} ),
Add Alias Term( {1, 1}, {5, 1} ), Add Alias Term( {2, 1}, {3, 1} ),
Add Alias Term( {2, 1}, {4, 1} ), Add Alias Term( {2, 1}, {5, 1} ),
Add Alias Term( {3, 1}, {4, 1} ), Add Alias Term( {3, 1}, {5, 1} ),
Add Alias Term( {4, 1}, {5, 1} ), Set Sample Size( 12 ), Simulate Responses( 0 ),
Save X Matrix( 0 ), Make Design}
)
I highly recommend reading the great blog post by @Jed_Campbell regarding factor constraints : Demystifying Factor Constraints
Victor GUILLER
"It is not unusual for a well-designed experiment to analyze itself" (Box, Hunter and Hunter)