Description
I encountered an issue with the add_design method in the doepandas package when specifying resolutions for fractional factorial designs with 6 factors. The method allows for the selection of a resolution that is not standard, resulting in an error.
Issue Details:
When attempting to create a design with resolution=VI for 6 factors, the method fails with a ValueError indicating "design not possible." But when setting resolution=V for 6 factors, the design given is with 32 runs. Although, resolution V does not typically exist for 6 factors in standard design tables.
Standard Resolutions:
For 6 factors, the standard resolutions are:
Resolution IV: 16 runs (1/4 fraction of the full factorial)
Resolution VI: 32 runs (1/2 fraction of the full factorial)
Expected Behavior:
The method should either generate a valid design for compatible resolutions or provide a descriptive error message indicating that the requested resolution is not valid for the given number of factors.