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%3E%E6%98%AF%E5%90%A6%E5%8F%AF%E4%BB%A5%E5%AE%8C%E5%85%A8%E8%87%AA%E5%8B%95%E5%8C%96%E2%80%9Cobj%20%26lt%3B%26lt%3B%20Set%20Desiribility%3B%E2%80%9D%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-762590%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E5%A4%A7%E5%AE%B6%E5%A5%BD%EF%BC%8C%3C%2FP%3E%3CP%3E%E7%95%B6%E6%82%A8%E9%81%8B%E8%A1%8C%E4%B8%8B%E9%9D%A2%E7%9A%84%E7%A8%8B%E5%BC%8F%E7%A2%BC%EF%BC%88%E7%A8%8B%E5%BC%8F%E7%A2%BC%E5%8F%96%E8%87%AA%E8%85%B3%E6%9C%AC%E7%B4%A2%E5%BC%95%EF%BC%89%E6%99%82%EF%BC%8C%E6%9C%83%E6%89%93%E9%96%8B%E4%B8%80%E5%80%8B%E7%AA%97%E5%8F%A3%EF%BC%8C%E6%82%A8%E5%8F%AF%E4%BB%A5%E5%9C%A8%E5%85%B6%E4%B8%AD%E6%89%8B%E5%8B%95%E6%8C%87%E5%AE%9A%E9%9F%BF%E6%87%89%E6%98%AF%E5%90%A6%E6%9C%80%E5%A4%A7%E5%8C%96%EF%BC%8C%E6%98%AF%E5%90%A6%E7%82%BA%E7%84%A1%E7%AD%89%E3%80%82%E5%B0%B1%E4%B8%8D%E6%9C%83%E5%88%B0%E5%BA%95%E9%9C%80%E8%A6%81%E4%BD%BF%E7%94%A8%E8%80%85%E4%BA%92%E5%8B%95%E5%97%8E%EF%BC%9F%3C%2FP%3E%3CP%3E%E6%84%9F%E8%AC%9D%E6%82%A8%E7%9A%84%E5%B9%AB%E5%BF%99%EF%BC%81%3CBR%20%2F%3E%3CBR%20%2F%3E%E6%B3%A8%E6%84%8F%EF%BC%9A%E6%88%91%E4%BD%BF%E7%94%A8%E7%9A%84%E6%98%AF%20JMP%2018%E3%80%82%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%3E%E8%87%AA%E5%8B%95%E5%8C%96%E5%92%8C%E8%85%B3%E6%9C%AC%E7%B7%A8%E5%AF%AB%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%3E%E5%9B%9E%E8%A6%86%EF%BC%9A%E6%98%AF%E5%90%A6%E5%8F%AF%E4%BB%A5%E5%AE%8C%E5%85%A8%E8%87%AA%E5%8B%95%E5%8C%96%E2%80%9Cobj%20%26lt%3B%26lt%3B%20Set%20Desiribility%3B%E2%80%9D%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-762604%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E6%9C%89%E6%B2%92%E6%9C%89%E5%98%97%E8%A9%A6%E9%81%8E%E5%A6%82%E6%9E%9C%E4%BD%A0%E6%8A%8A%E5%AE%83%E5%80%91%E6%89%94%E6%8E%89%E6%9C%83%E7%99%BC%E7%94%9F%E4%BB%80%E9%BA%BC%EF%BC%9F%E5%AE%83%E5%8F%AF%E8%83%BD%E6%9C%89%E6%95%88%EF%BC%8C%E4%BD%86%E6%88%91%E4%B8%8D%E7%A2%BA%E5%AE%9A%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%3E%E5%9B%9E%E8%A6%86%EF%BC%9A%E6%98%AF%E5%90%A6%E5%8F%AF%E4%BB%A5%E5%AE%8C%E5%85%A8%E8%87%AA%E5%8B%95%E5%8C%96%E2%80%9Cobj%20%26lt%3B%26lt%3B%20Set%20Desiribility%3B%E2%80%9D%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-762596%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%84%9F%E8%AC%9D%E4%BD%A0%E7%9A%84%E5%8F%8A%E6%99%82%E5%9B%9E%E8%A6%86%EF%BC%81%E9%80%99%E5%B7%B2%E7%B6%93%E6%9C%89%E5%B9%AB%E5%8A%A9%E4%BA%86%EF%BC%8C%E9%82%84%E6%9C%89%E4%B8%80%E5%80%8B%E5%95%8F%E9%A1%8C%EF%BC%9A%E6%9C%89%E6%B2%92%E6%9C%89%E4%B8%80%E7%A8%AE%E6%96%B9%E6%B3%95%E5%8F%AF%E4%BB%A5%E5%8F%AA%E8%A8%AD%E5%AE%9A%E2%80%9C%E9%9F%BF%E6%87%89%E9%99%90%E5%88%B6%EF%BC%88%EF%BC%89%E2%80%9D%E7%9A%84%E2%80%9C%E7%9B%AE%E6%A8%99%EF%BC%88%EF%BC%89%E2%80%9D%EF%BC%8C%E5%9B%A0%E7%82%BA%E6%88%91%E4%B8%8D%E6%83%B3%E6%9B%B4%E6%94%B9%E4%B8%8B%E9%99%90%E3%80%81%E4%B8%8A%E9%99%90%E7%AD%89%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-762594%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E8%A6%86%EF%BC%9A%E6%98%AF%E5%90%A6%E5%8F%AF%E4%BB%A5%E5%AE%8C%E5%85%A8%E8%87%AA%E5%8B%95%E5%8C%96%E2%80%9Cobj%20%26lt%3B%26lt%3B%20Set%20Desiribility%3B%E2%80%9D%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-762594%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%88%91%E6%83%B3%E4%BD%A0%E5%8F%AF%E4%BB%A5%E5%81%9A%E9%80%99%E6%A8%A3%E7%9A%84%E4%BA%8B%E6%83%85%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