cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
SerialFox537
Level II

Non linear factor constraint

I need to make a design where two factors are linked by a constrain that is non linear.
Given factor A [0,5 to 20] and factor B [5 to 125] that need to fulfill equation B<500*A^-1 for the experiment to work.
Only factor combination below the curve are acceptable.

SerialFox537_0-1702299008945.png

How do I impose such a constrain?
Thank you for any tip.

1 ACCEPTED SOLUTION

Accepted Solutions
Victor_G
Super User

Re: Non linear factor constraint

Hi @SerialFox537,

 

Welcome in the Community !

I think this blog post by @Jed_Campbell about factor constraints in DoE should help you integrate your equation in the "Disallowed Combinations Script" (the third option described) : Demystifying Factor Constraints  

To generate points below this curve, you can use this disallowed combination script :

 

B > 500 * A ^ (-1)

Here an example with a Space-Filling design generated with this constraint (only points below this curve) :

Victor_G_0-1702303649221.png

 

 

Hope this ressource will help you,

Victor GUILLER
L'Oréal Data & Analytics

"It is not unusual for a well-designed experiment to analyze itself" (Box, Hunter and Hunter)

View solution in original post

6 REPLIES 6
MRB3855
Super User

Re: Non linear factor constraint

Victor_G
Super User

Re: Non linear factor constraint

Hi @SerialFox537,

 

Welcome in the Community !

I think this blog post by @Jed_Campbell about factor constraints in DoE should help you integrate your equation in the "Disallowed Combinations Script" (the third option described) : Demystifying Factor Constraints  

To generate points below this curve, you can use this disallowed combination script :

 

B > 500 * A ^ (-1)

Here an example with a Space-Filling design generated with this constraint (only points below this curve) :

Victor_G_0-1702303649221.png

 

 

Hope this ressource will help you,

Victor GUILLER
L'Oréal Data & Analytics

"It is not unusual for a well-designed experiment to analyze itself" (Box, Hunter and Hunter)
SerialFox537
Level II

Re: Non linear factor constraint

Thank you for your reply.
I did try to input the formula in the disallowed combinations script, but when I try to make the design I receive this error:

SerialFox537_0-1702304759664.png

And all terms are selected.

Victor_G
Super User

Re: Non linear factor constraint

Hi @SerialFox537,

 

Can you be more specific about the platform you use for the design generation, the factors (only A and B ?) and factors type, as well as the assumed model ?

With the Space-Filling example or with a Custom Design, I have no design generation problem with these settings :

Victor_G_0-1702310552082.png

Victor_G_2-1702310627046.png

Victor_G_5-1702310924190.png
Victor_G_4-1702310897491.png

 

Here is the script as an example to regenerate the 12-runs D-Optimal design :

DOE(
	Custom Design,
	{Add Response( Maximize, "Y", ., ., . ),
	Add Factor( Continuous, 0.5, 20, "A", 0 ),
	Add Factor( Continuous, 5, 125, "B", 0 ), Set Random Seed( 360253698 ),
	Number of Starts( 9706 ), Add Term( {1, 0} ), Add Term( {1, 1} ),
	Add Term( {2, 1} ), Add Term( {1, 1}, {2, 1} ), Add Term( {1, 2} ),
	Add Term( {2, 2} ), Set Sample Size( 12 ),
	Disallowed Combinations( B > 500 * A ^ (-1) ), Simulate Responses( 0 ),
	Save X Matrix( 0 ), Make Design, Set Run Order( Randomize ), Make Table}
)

And datatable is attached.

 

Hope this answer will help you,

Victor GUILLER
L'Oréal Data & Analytics

"It is not unusual for a well-designed experiment to analyze itself" (Box, Hunter and Hunter)
SerialFox537
Level II

Re: Non linear factor constraint

I found what the problem was.
The variables were not named A and B, it was just an example.
One of them was a ratio (m/m) and the formula was getting confused with the division operator within the name of the factor.
Once I changed the name it worked as you showed, thank you

Victor_G
Super User

Re: Non linear factor constraint

Perfect !


If you want to add the units for specific factors, you can add a column property "Units" to this factor, so that unit is displayed in the name (in parentheses) when using this factor but it won't interact with the modeling or with any platform : Properties That Control the Display of Columns

Victor_G_0-1702374306022.png

 

Hope this might help you,

Victor GUILLER
L'Oréal Data & Analytics

"It is not unusual for a well-designed experiment to analyze itself" (Box, Hunter and Hunter)