Ciao!
Nuovo utente di JMP. Sto usando la versione di prova per studenti e vorrei usare lo script JSL per progettare RSM. Ecco a che punto sono arrivato...
Names Default To Here( 1 );
// Here are the factors and the ranges
factors = {
{"X1", 0, 1, "Continuous"},
{"X2", 0, 1, "Continuous"},
{"X3", 0, 1, "Continuous"}
};
rsm = DOE( Response Surface Design );
// Add a response
rsm << AddResponse( Minimize, "Y");
// Add the factors. We will need to overwrite the defaults
// overwrite the two built‑ins
For( i = 1, i <= Min( N Items( factors ), 2 ), i++,
rsm << Change Factor Settings( i, factors[i][2], factors[i][3], factors[i][1] );
);
// add any remaining
For( i = 3, i <= N Items( factors ), i++,
rsm << Add Factor( Continuous, factors[i][2], factors[i][3], factors[i][1], 0 );
);
rsm << Set Random Seed( 30624700 );
rsm << Make Design( 2 );
rsm << Set Axial Choice( 4 );
rsm << Center Points( 0 );
rsm << Make Table;
dt = Current Data Table();
// Set the response here
yvals = { 1.23, 0.98, 1.05, 0.76, 1.12, 1.23, 0.98, 1.05, 0.76, 1.12, 1.23, 0.98, 1.05, 0.76};
dt:Y << Set Values( yvals );
///////////////////////////
/////// Fit the RSM ///////
///////////////////////////
// Fit the RSM
fm = dt << Fit Model;
fls = fm << Run;
Sono riuscito a ottenere la tabella dati con i fattori e a inserire alcuni valori y fittizi. Posso adattare il modello quadratico ed eseguirlo. Sembra che ottenga una sorta di oggetto report, ma voglio usare "Prediction Profiler", "Maximize Desirability" e "Remember" l'ottimale. Voglio aggiungere i fattori ottimali suggeriti alla tabella dati. Queste parole chiave si trovano tutte nello Scripting Index, ma non riesco a capire come farle funzionare in JSL.
Ogni aiuto sarà molto apprezzato! Grazie mille.
Penso che tu debba trovare un riferimento alla piattaforma del profiler. Puoi farlo trovando un riferimento alla casella di riepilogo del profiler di previsione e poi usando << Ottieni oggetto scriptabile
profiler_ob = (Report(fls) << XPath("//OutlineBox[@helpKey='Profiler']"))[1];
pf = profiler_ob << Get Scriptable Object;
Dovresti anche essere in grado di ottenere il riferimento tramite l'abbonamento al report
profiler_ob = Report(fls)[OutlineBox("Prediction Profiler")];
pf = profiler_ob << Get Scriptable Object;
Dopodiché puoi usare pf come faresti con l'oggetto Profiler, ad esempio
pf << Maximize Desirability;