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) :
![Victor_G_0-1716898662976.png Victor_G_0-1716898662976.png](https://community.jmp.com/t5/image/serverpage/image-id/64554iF5752C9D9BB048D2/image-size/medium?v=v2&px=400)
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
Scientific Expertise Engineer
L'Oréal - Data & Analytics