by ejdwebb » Thu Mar 14, 2019 7:49 pm
Hi Michel,
Sure, the code is below. If it's not already a known bug I'd bet on it being my mistake since I'm relatively new to NGene. I've emailed the previous design file to the email address you gave.
Thanks!
Ed.
Design;
alts = alt1, alt2;
rows = 40;
block = 4;
eff = (rp,d);
alg = mfederov;
start=temp_design_12-03-19.ngd;
bdraws = halton(250);
rdraws = halton(250);
reject:
alt1.enrollment>=alt2.enrollment and alt1.completion>=alt2.completion and alt1.fruitnveg>=alt2.fruitnveg and alt1.stafftime<=alt2.stafftime and alt1.setupcost<=alt2.setupcost and alt1.runningcost<=alt2.runningcost,
alt2.enrollment>=alt1.enrollment and alt2.completion>=alt1.completion and alt2.fruitnveg>=alt1.fruitnveg and alt2.stafftime<=alt1.stafftime and alt2.setupcost<=alt1.setupcost and alt2.runningcost<=alt1.runningcost;
model:
U(alt1) = b_enrollment[n,(u,0,1),(u,0.1,0.5)]*enrollment[6,8,10] + b_completion[n,(u,0,1),(u,0.1,0.5)]*completion[50,70,80] + b_enrollment_x_completion[0.1]*enrollment*completion + b_fruitnveg[n,(u,0,1),(u,0.1,0.5)]*fruitnveg[0.5,1,2] + b_stafftime[n,(u,-1,0),(u,0.1,0.5)]*stafftime[4,8,12] + b_setupcost[n,(u,-1,0),(u,0.1,0.5)]*setupcost[15,20,30] + b_runningcost[n,(u,-1,0),(u,0.1,0.5)]*runningcost[15,20,30]/
U(alt2) = b_enrollment*enrollment + b_completion*completion + b_enrollment_x_completion*enrollment*completion + b_fruitnveg*fruitnveg + b_stafftime*stafftime + b_setupcost*setupcost + b_runningcost*runningcost
$