Hi,
I have the following code in the optmodel:
for {i in rxid} do;
if calculation[i] = 1 and dollars[i] =1 > current_copay[i] +5 then do;
fix copay1_lhs[i]= n_ingred_cost[i] + n_disp_fee_final[i] ;
fix copay1_rhs[i]=(current_copay[i] +5) - bill_tax[i];
end;
end;
con c28{i in rxid}:copay1_lhs[i] <= copay1_rhs[i];
when i expand it, i see the results below
Constraint c28[674523592]: copay1_lhs[674523592] - copay1_rhs[674523592] <= 0
Constraint c28[674563238]: copay1_lhs[674563238] - copay1_rhs[674563238] <= 0
Constraint c28[674563792]: copay1_lhs[674563792] - copay1_rhs[674563792] <= 0
is it right to pass the variable in the constraint function; please help
thanks in advance