We generalize the programs for any model in terms of x and para that consists of A and
Q for aggregate model.
We set
fc(K,K1,para)
instead of
fc(K,K1,Ai,Qi)
where we merge Ai and Qi as para=Ai~Qi.
We replace all the variables related to k(or K) by x.