cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
%3CLINGO-SUB%20id%3D%22lingo-sub-762590%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EIs%20it%20possible%20to%20fully%20automatize%20%22obj%20%26lt%3B%26lt%3B%20Set%20Desirabilities%3B%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-762590%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20all%2C%26nbsp%3B%3C%2FP%3E%3CP%3Ewhen%20you%20run%20the%20code%20below%20(code%20is%20taken%20from%20the%20scripting%20index)%20a%20window%20opens%20where%20you%20can%20manually%20specify%20if%20a%20response%20shall%20be%20maximized%2C%20be%20none%20etc.%20I%20was%20wondering%20if%20this%20manual%20step%20can%20be%20done%20completely%26nbsp%3Bby%20scripting%20such%20that%20no%20user%20interaction%20is%20required%20at%20all%3F%3C%2FP%3E%3CP%3EThanks%20for%20your%20help!%3CBR%20%2F%3E%3CBR%20%2F%3ENote%3A%20I'm%20using%20JMP%2018.%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(%201%20)%3B%0Adt%20%3D%20Open(%20%22%24SAMPLE_DATA%2FTiretread.jmp%22%20)%3B%0Aobj%20%3D%20dt%20%26lt%3B%26lt%3B%20Profiler(%0A%09Y(%20%3APred%20Formula%20ABRASION%2C%20%3APred%20Formula%20MODULUS%2C%20%3APred%20Formula%20ELONG%2C%20%3APred%20Formula%20HARDNESS%20)%0A)%3B%0Aobj%20%26lt%3B%26lt%3B%20Desirability%20Functions(%201%20)%3B%0Aobj%20%26lt%3B%26lt%3B%20Set%20Desirabilities%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-762590%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EAutomation%20and%20Scripting%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-762604%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Is%20it%20possible%20to%20fully%20automatize%20%22obj%20%26lt%3B%26lt%3B%20Set%20Desirabilities%3B%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-762604%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EDid%20you%20try%20what%20would%20happen%20if%20you%20just%20dropped%20those%3F%20It%20might%20work%20but%20I'm%20not%20sure%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Eobj%20%26lt%3B%26lt%3B%20(Pred%20Formula%20ABRASION%20%26lt%3B%26lt%3B%20Response%20Limits(%7BGoal(%22None%22)%7D))%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-762596%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Is%20it%20possible%20to%20fully%20automatize%20%22obj%20%26lt%3B%26lt%3B%20Set%20Desirabilities%3B%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-762596%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThanks%20for%20your%20prompt%20reply!%20This%20already%20helps%2C%20just%20one%20more%20question%3A%20Is%20there%20a%20way%20to%20only%20set%20the%20%22Goal()%22%20of%20%22Response%20Limits()%22%20as%20I%20don't%20want%20to%20change%20lower%20limit%2C%20upper%20limit%20etc.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-762594%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Is%20it%20possible%20to%20fully%20automatize%20%22obj%20%26lt%3B%26lt%3B%20Set%20Desirabilities%3B%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-762594%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20think%20you%20can%20do%20something%20like%20this%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(1)%3B%0Adt%20%3D%20Open(%22%24SAMPLE_DATA%2FTiretread.jmp%22)%3B%0Aobj%20%3D%20dt%20%26lt%3B%26lt%3B%20Profiler(%0A%09Y(%3APred%20Formula%20ABRASION%2C%20%3APred%20Formula%20MODULUS%2C%20%3APred%20Formula%20ELONG%2C%20%3APred%20Formula%20HARDNESS)%0A)%3B%0Aobj%20%26lt%3B%26lt%3B%20Desirability%20Functions(1)%3B%0A%0Aobj%20%26lt%3B%26lt%3B%20(Pred%20Formula%20ABRASION%20%26lt%3B%26lt%3B%20Response%20Limits(%0A%09%7BLower(100%2C%201)%2C%20Middle(150%2C%201)%2C%20Upper(200%2C%201)%2C%20Goal(%22None%22)%2C%0A%09Importance(0.25)%7D%0A))%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
RMSEBird223
Level II

Is it possible to fully automatize "obj << Set Desirabilities;"

Hi all, 

when you run the code below (code is taken from the scripting index) a window opens where you can manually specify if a response shall be maximized, be none etc. I was wondering if this manual step can be done completely by scripting such that no user interaction is required at all?

Thanks for your help!

Note: I'm using JMP 18.

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Tiretread.jmp" );
obj = dt << Profiler(
	Y( :Pred Formula ABRASION, :Pred Formula MODULUS, :Pred Formula ELONG, :Pred Formula HARDNESS )
);
obj << Desirability Functions( 1 );
obj << Set Desirabilities;
1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Is it possible to fully automatize "obj << Set Desirabilities;"

Did you try what would happen if you just dropped those? It might work but I'm not sure

obj << (Pred Formula ABRASION << Response Limits({Goal("None")}));
-Jarmo

View solution in original post

3 REPLIES 3
jthi
Super User

Re: Is it possible to fully automatize "obj << Set Desirabilities;"

I think you can do something like this

Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Tiretread.jmp");
obj = dt << Profiler(
	Y(:Pred Formula ABRASION, :Pred Formula MODULUS, :Pred Formula ELONG, :Pred Formula HARDNESS)
);
obj << Desirability Functions(1);

obj << (Pred Formula ABRASION << Response Limits(
	{Lower(100, 1), Middle(150, 1), Upper(200, 1), Goal("None"),
	Importance(0.25)}
));
-Jarmo
RMSEBird223
Level II

Re: Is it possible to fully automatize "obj << Set Desirabilities;"

Thanks for your prompt reply! This already helps, just one more question: Is there a way to only set the "Goal()" of "Response Limits()" as I don't want to change lower limit, upper limit etc.

jthi
Super User

Re: Is it possible to fully automatize "obj << Set Desirabilities;"

Did you try what would happen if you just dropped those? It might work but I'm not sure

obj << (Pred Formula ABRASION << Response Limits({Goal("None")}));
-Jarmo