여보세요,
이전 입력 변수를 기반으로 DOE[] 개체가 하나의 추가 요소와 함께 작동하도록 메시지가 표시되는 스크립트를 만들고 싶습니다.
DOE 디자인 생성은 이제 실행하기에 무거워(약 30초), 그래서 저는 린 방법을 찾고 있습니다(예: 'make design' 메시지를 보내기 전에 수정).
이상적으로는 if 절을 사용하여 해당 부울 변수가 true인지 확인하고 그렇다면 사용자 정의 디자인에 요소를 추가하고 싶습니다.
일부 '의사 코드':
AddSpecialFactor = 1; /* decision rule to add factor, will be retrieved from a modal window based on some more complex molecule chemistry input */
D = DOE(
custom design,
Add Factor(continuous, "A",.....),
Add Factor( ...),
..
If (AddSpecialFactor = 1) then Add Factor(....),
Add Term(),
..
If (AddSpecialFactor = 1) then Add Term() ...,
모든 제안을 환영합니다.
디자인 생성을 위한 멋진 아이디어입니다.
저는 CSV에서 디자인을 가져와서 DOE를 생성하는 작업을 하고 있었습니다. https://community.jmp.com/t5/Byron-Wingerd-s-Blog/Automating-Design-Generation/ba-p/407039
스크립트 개념이 데이터 테이블을 생성하도록 한 다음 위의 블로그에 있는 스크립트를 사용하여 DOE 플랫폼을 로드하고 실행하는 것이 좋습니다.
열 이름 목록을 가져와서 해당 목록에 특정 단어가 포함된 경우 적절한 요소 수준으로 열을 추가하시겠습니까?
Byron님, 감사합니다.
테이블에서 로드하는 것은 좋은 생각입니다.
RSM보다 더 복잡하기 때문에 모델을 조정해야 하지만 Peter Goos와 Bradley Jones의 출판물에서와 같이 분기 요소가 있습니다.
Goos and Jones(2019) 내포 요인이 있는 경우 최적의 실험 설계. 테크노메트릭스.
https://doi.org/10.1080/00401706.2018.1562986
또한 코드가 텍스트 형식으로 빌드된 다음 평가() 표현식에 사용되는 예가 있습니까?
처럼:
DOECODE = "Part of the code " || if(..,) || etc...
.
.
DOEcommand = evaluate(DOECODE);
DOETable = (DOEcommand << Make Table);
다음은 이 프로세스를 스크립팅하는 방법의 예입니다.
Names Default to Here( 1 );
dialog = New Window( "Optional Factor", << Modal,
Outline Box( "Choice",
Text Box( "Add X4?" ),
Text Box( "Click OK to add" ),
Text Box( "Click Cancel to skip" )
),
H List Box(
Button Box( "OK" ),
Button Box( "Cancel" )
)
);
doe = DOE( Custom Design,
{Add Response( Maximize, "Y", ., ., . ),
Add Factor( Continuous, -1, 1, "X1", 0 ),
Add Factor( Continuous, -1, 1, "X2", 0 ),
Add Factor( Continuous, -1, 1, "X3", 0 ), Set Random Seed( 30650037 ),
Add Term( {1, 0} ), Add Term( {1, 1} ), Add Term( {2, 1} ), Add Term( {3, 1} ),
Add Term( {1, 1}, {2, 1} ), Add Term( {1, 1}, {3, 1} ),
Add Term( {2, 1}, {3, 1} ), Set Sample Size( 12 ), Simulate Responses( 0 ),
Save X Matrix( 0 )}
);
// add 4th factor and the associated main effect and interaction terms
If( dialog["Button"] == 1,
doe
<< Add Factor( Continuous, -1, 1, "X4", 0 )
<< Add Term( {4, 1} )
<< Add Term( {1, 1}, {4, 1} )
<< Add Term( {2, 1}, {4, 1} )
<< Add Term( {3, 1}, {4, 1} )
);