Algorithm for Program Agents in E-Learning for Solving Logistics Supply Chains Problems