Skip to main content
. 2016 Jul 5;16(7):1033. doi: 10.3390/s16071033
Algorithm 1 AHN algorithm for saturated and linear hydrocarbon compounds.
Input: a training dataset Σ=(x,y), the number of molecules in the compound n2 and a tolerance value ϵ>0.
Output: the saturated and linear hydrocarbon compound AHN.
Initialize an empty compound AHN={}.
Create a new saturated linear compound C like Equation (2).
Randomly initialize intermolecular distances rt.
while |y-ψ|>ϵ do
 Determine all bounds Lt of C using rt.
for each j-th molecule in C do
    Determine all parameters of behavior φj in Equation (1) using an optimization process.
end-for
 Build the compound behavior ψ of C using Equation (3).
 Update intermolecular distances using Equations (4) and (5).
end-while
Update AHN with C and ψ.
return AHN