Here are 18 treatments, some are from same Category[See the screen copy below].
Now, I need to enforce ONE AND ONLY ONE from condi_id=[2/3/4] is selected.
Note the total selected treatments is STILL TWO.
How to specify the "con"? Thanks.
con CardinalityTreatment234:
sum {t in 2..4} SelectTreatment[t] = 1;
I am moving to the 2nd stage, to MAXimize the total sum of difference between _tmin_orig and
the _tmin from the four METHODs, while only consider the TotalScore from previous runs[as
viable candidates] is >= a threshold, say TotalScore>=4.
I keep trying around, but does not get through. The codes below complains.
Would you help me on this?!
The Selection Count for METHODS=2 and The Selection for Treatment=2, please.
var Score {<d,b> in DATE_BLOCK} = 1 * IsGood[d,b] - 5 * (1 - IsGood[d,b]);
var TotalScore = sum {<d,b> in DATE_BLOCK} Score[d,b];
impvar difx{<d,b> in DATE_BLOCK} = outcome[d,b]* IsGood[d,b]-_time_orig[b];
max TotalDif =sum {<d,b> in DATE_BLOCK} difx[d,b];
con MinScore TotalScore >=&N.;
con CardinalityTreatment:
sum {t in TREATMENTS} SelectTreatment[t] = 2;
con CardinalityMethod:
sum {m in METHODS} SelectMethod[m] = 2;
The main reason is to safe-guard the improvement: 1) to improve across as many blocs as
possible [stage I] and 2) to max the improvement [stage II], only from candidates from stage I.
There are quite possibilities somewhere here is a huge diff between _tmin_orig and _tmin[from 4 METHODs], but only for one/two blocs while fail to improve at all the blocs leftover.
Thanks,
I would be glad to help, but first please create a new question for this part.
Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.
Explore Now →