Saving Remembered Settings in ProfilerIn JMP 17.2.0 I am using Optimization and Desirability -> Maximize and Remember to generate optimized settings for different situations (e.g. factors locked differently). When saving the Profiler as script to Data Table and re-open, only the first setting is there and the others are gone. Would it help if I changed something in the preferences?
Thank you,
AM
Basic Data Analysis and ModelingData Exploration and VisualizationRe: Saving Remembered Settings in ProfilerHi @andresm ,
I've given this a try on v18 and haven't had any issues. How are you 'locking' the factor settings before using the maximization option?
Thanks,
Ben
Re: Saving Remembered Settings in ProfilerHi @andresm,
Welcome in the Community !
To lock factor settings, use CTRL (or ALT) + click on the factor : Set or Lock Factor Values
In order to debug and understand where the error can be, can you right-click on the saved Profiler script and check the code to make sure you have lost your saved settings ? :
Profiler(
Y( :Pred Formula Y, :PredSE Y ),
Profiler(
1,
Confidence Intervals( 1 ),
Desirability Functions( 1 ),
Maximize and Remember,
Term Value(
:X1( -1, Lock( 0 ), Show( 1 ) ), :X2( "x", Lock( 0 ), Show( 1 ) ),
:X3( "A", Lock( 1 ), Show( 1 ) )
),
Remember Settings( "Optimal_A", Differences Report( 0 ) ),
Term Value(
:X1( -1, Lock( 0 ), Show( 1 ) ), :X2( "x", Lock( 0 ), Show( 1 ) ),
:X3( "B", Lock( 1 ), Show( 1 ) )
),
Remember Settings( "Optimal_B" ),
Term Value(
:X1( 1, Lock( 0 ), Show( 1 ) ), :X2( "z", Lock( 0 ), Show( 1 ) ),
:X3( "C", Lock( 1 ), Show( 1 ) )
),
Remember Settings( "Optimal_C" ),
Term Value(
:X1( 1, Lock( 0 ), Show( 1 ) ), :X2( "z", Lock( 0 ), Show( 1 ) ),
:X3( "D", Lock( 1 ), Show( 1 ) )
),
Remember Settings( "Optimal_D", Differences Report( 1 ) ),
Term Value(
:X1( 1, Lock( 0 ), Show( 1 ) ), :X2( "z", Lock( 0 ), Show( 1 ) ),
:X3( "D", Lock( 1 ), Show( 1 ) )
)
),
Use SE Formula( 1 )
);
In my example, these are the lines next to "Remember Settings" : I have saved 4 optima with specific names for the 4 levels of factor X3 in the 2x3x4 Factorial dataset from JMP.
I think you may have a bug, but if you can share an anonymized version of the dataset or if you use the code structure I shared above, you can edit your script to add the missing remembered settings.
@Ben_BarrIngh I don't have the same bug, but JMP constantly adds a new default "_Optimal_" value without constraints when I save the script. Maybe in the case of @andresm this action also has removed previous optima (but this is not my case).
Hope this answer can help you,
Re: Saving Remembered Settings in ProfilerHi,
I just mentioned locking factors to illustrate why I need to save multiple settings. I use ALT+click on the factor graph in Profiler. The problem is not related on this but saving the result as script.
Thank you,
Andres
Re: Saving Remembered Settings in ProfilerThank you!
I attach my example file here. Also screenshots of Profile before saving as script to data table and after running the saved script.
I also attach the saved script.
Andres
Profiler(
Y( :Pred Formula Y ),
Profiler(
1,
Desirability Functions( 1 ),
Maximize and Remember,
Term Value(
X1( 70, Lock( 1 ), Show( 1 ) ),
X2( 12.0897151634458, Lock( 0 ), Show( 1 ) ),
X3( 5, Lock( 0 ), Show( 1 ) )
)
)
)


Re: Saving Remembered Settings in ProfilerI also can add the JMP file here.
Andres
Re: Saving Remembered Settings in ProfilerHi @andresm,
I think changing the names of your different optimas may help.
If I saved different settings in the Profiler without changing the names of these optimas, then the script doesn't contain the others optimas saved :
Profiler(
Y( :Pred Formula Y ),
Profiler(
1,
Desirability Functions( 1 ),
Maximize and Remember,
Term Value(
:X1( 70, Lock( 1 ), Show( 1 ) ),
:X2( 10.526040687038, Lock( 0 ), Show( 1 ) ),
:X3( 13.4, Lock( 1 ), Show( 1 ) )
)
)
);
Whereas if I change the names of each of the Remembered settings, JMP saves each Profiler Remembered settings :
Profiler(
Y( :Pred Formula Y ),
Profiler(
1,
Desirability Functions( 1 ),
Maximize and Remember,
Term Value(
:X1( 70, Lock( 0 ), Show( 1 ) ),
:X2( 12.0897151634458, Lock( 0 ), Show( 1 ) ),
:X3( 5, Lock( 0 ), Show( 1 ) )
),
Remember Settings( "Optimal_fixed(X1=70)" ),
Term Value(
:X1( 70, Lock( 0 ), Show( 1 ) ), :X2( 8.9769197, Lock( 0 ), Show( 1 ) ),
:X3( 5.69781686372509, Lock( 0 ), Show( 1 ) )
),
Remember Settings( "Optimal_fixed(X1=70&X2=8,97)", Differences Report( 1 ) ),
Term Value(
:X1( 70, Lock( 0 ), Show( 1 ) ), :X2( 8.9769197, Lock( 0 ), Show( 1 ) ),
:X3( 5.69781686372509, Lock( 0 ), Show( 1 ) )
)
)
);
I think the default name for a remembered setting is "_Optimal_" and works ok if you only save one, but if you save several ones, you need to change the naming in order to avoid names conflict.
Here is your datatable with the added script "Profiler of Pred Formula Y 2", where you should see 3 remembered settings :

Let me know if it solves your problem,
Re: Saving Remembered Settings in ProfilerThank you, Victor!
This solved my problem.
Kind regards,
Andres