|
Algorithm 1 AHN algorithm for saturated and linear hydrocarbon compounds. |
|
Input: a training dataset , the number of molecules in the compound and a tolerance value . |
|
Output: the saturated and linear hydrocarbon compound . |
| Initialize an empty compound . |
| Create a new saturated linear compound C like Equation (2). |
| Randomly initialize intermolecular distances . |
|
while
do
|
| Determine all bounds of C using . |
| for each
j-th molecule in C
do
|
| Determine all parameters of behavior 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 with C and ψ. |
|
return
|