FREVO

,

LAKE – FREVO: FRamework for EVOlutionary design

ID: R18 Licence:
Apache 2.0
Owner:
LAKE
Contacts:
schranz@lakeside-labs.com
Short DescriptionFREVO creates local rules for the agents that place workloads on the edge-fog-cloud continuum, using evolutionary algorithms. To evaluate the candidate solutions it needs a simulation framework: in MYRTUS, FREVO is connected to COSMOS, which acts as its fitness evaluator.
Key features– Modular, strictly component-based structure, easily extendable
– Separate components for the problem, the candidate representation, the optimization method and the ranking of candidates
– Several neural network models and evolutionary algorithms
– Graphical user interface to configure sessions and run optimizations; sessions and results can be saved and reloaded
– Interface to an external simulator, implemented in MYRTUS for COSMOS
RequireJava environment (version 1.6 or later). For the design of local rules for the continuum, the COSMOS simulation framework.
ProvideCandidate representations based on neural networks and finite state machines:
– Fully-meshed net: a time-discrete, recurrent neural network where each neuron is connected to every other neuron and to itself; biases and connection weights are evolved
– Three-layered net: a similar network with a feed-forward structure
– NEAT net: a network whose connectivity structure is also evolved
– Econets: neural networks that can learn from their previous outputs
– MealyFSM: a Mealy machine whose structure and transition probabilities are evolved
InputA FREVO session, that is, the choice of problem, representation, optimization method and ranking. When COSMOS is the simulator, the training is configured in the COSMOS configuration file (training mode, communication port with FREVO, number of evaluations per candidate, size and topology of the simulated continuum, pod arrival rate, folder for the best trained model). The topology can come from a TOSCA model exported with Modelio TOSCA Designer.
OutputThe best candidate found by the evolutionary search, that is, the parameters (weights) of the controller that the agents use as local placement rules, together with the evolution of the fitness over the generations. The best candidate can be run again in COSMOS for evaluation.
User– System designers
– Researchers
working on edge-fog-cloud orchestration, in particular with evolutionary and neural network based approaches
Benefits for the user– Possibility to design algorithms based on evolution for the MYRTUS 360° vision: placement rules for the agents are learned in simulation when the right behaviour is not known in advance
– Less manual work: the local rules are generated and tuned by the evolutionary search instead of by hand
– A choice of neural network and finite state machine models for the decision-making of the agents
– A ready-made training and evaluation loop with COSMOS, without building the link between the evolutionary algorithm and the simulator
– Experiments that can be saved, repeated and compared
Downloadgithub.com/smartgrids-aau/Frevo
Interface on the COSMOS side: github.com/Incomprehensible/COSMOS
Role in MYRTUSStep 1 of the MYRTUS DPE (Continuum modelling, simulation and analysis): design space exploration for large-scale deployments, together with COSMOS.
TRL@M03
TRL@M364-5

General description


FREVO (FRamework for EVOlutionary design) is a framework for the evolutionary design of self-organizing systems. It applies genetic algorithms to evolve the behaviour of agents, offering multiple options for the candidate representation (such as neural networks, finite state machines or fuzzy rules) and for the optimization method and its parameters. Several papers and implementations have shown the stability of FREVO and the many ways in which it can generate rules, also for swarms.

FREVO has a strictly component-based architecture, written in Java. The problem component defines the environment, for example the characteristics of a computing node, and the fitness function; the representation component defines how an agent is represented; the optimization component defines the method used to search for the best candidate; the ranking component defines how candidates are evaluated and ranked. Each component is defined by an abstract class, so new components can be added and existing ones replaced independently, and a built-in generator helps developers create the code skeleton of new components. A graphical user interface guides the user through the choice of a component for each stage; a configuration is called a FREVO session and can be saved, exported and reloaded together with its results.

Role in the MYRTUS DPE


In Step 1 of the MYRTUS DPE, a design space exploration block for large-scale deployments turns the simulated behaviour of the application into local rules that the agents use to place workloads at run time. The block has two alternative paths. When the placement logic is already known, a swarm intelligence algorithm is implemented and evaluated in COSMOS, and the rules are delivered as code. When the right behaviour is not known in advance, FREVO runs an evolutionary training loop with COSMOS as the simulation engine and fitness evaluator, searching over many simulated generations for a controller, typically an Evolutionary Fuzzy Controller (EFC), that performs well. The result is a set of learned parameters, so this path delivers the local rules as weights.

The exchange between the two tools runs through an inter-process communication (IPC) interface. FREVO selects a candidate, encodes it as a Candidate message and sends it to COSMOS; COSMOS reconstructs it as a neural network, runs a parametrized simulation, evaluates the state of the model and sends the results back as a Stats message. FREVO calculates the fitness and passes it to the genetic algorithm (NNGA classic), while COSMOS resets the model for the next candidate.

Workflow between FREVO and COSMOS: candidate selection, simulation, evaluation and fitness calculation

Workflow between FREVO and COSMOS.

The topology to be explored can be modelled in Modelio TOSCA Designer, which provides a dedicated YAML export for the FREVO-COSMOS pipeline, and the resulting local rules are exported, together with the TOSCA model, towards deployment, where they guide the swarm-based placement of workloads in the MIRTO cognitive engine.

MYRTUS Extension/Contribution


FREVO evaluates each candidate by simulation, either inside FREVO or by calling an external simulator, and computes its fitness from the result of the simulation run. The contribution of MYRTUS is exactly this part: the interface between FREVO and an external simulation environment, for which COSMOS was chosen. The problem definition is contained in COSMOS, where agent behaviour and data flow are implemented with the Mesa agent-based modelling framework, and a two-way IPC interface lets COSMOS recreate each candidate and FREVO evaluate it.

With this tooling loop, swarm behaviours for workload placement have been designed and evaluated on synthetic and semi-synthetic large-scale continuum topologies, including topologies modelled in TOSCA and exported from Modelio, with placement objectives such as cost and latency, or communication cost and reduced dependence on fog and cloud resources. An integration with DynAA was also considered, but it was not needed, since COSMOS provides the simulation engine.

Technology Benefits and Innovations


Several frameworks support evolutionary algorithms for multi-agent and swarm systems, such as DEAP in Python, HeuristicLab in C# and MCACEA, which evolves a separate algorithm for each agent. FREVO is designed specifically to engineer self-organizing systems: it keeps the problem evaluation, the controller representation (for example neural networks or finite state machines) and the optimization method (for example NNGA or GASpecies) as separate, exchangeable components, so different configurations can be compared on the same problem, and it includes a graphical interface to run and validate the evolution.

Designing local rules for many interacting agents by hand is difficult, because the global behaviour emerges from the interactions and the quality of a rule set is only known after simulating it. Coupled with COSMOS, FREVO lets these rules be learned in a realistic simulation of resource dynamics across the edge, fog and cloud layers, so that self-organized workload placement strategies emerge through selective pressure and can be evaluated before integration into the real system.

For the designer, this turns rule design from a manual, trial-and-error activity into an automated search. Connecting an evolutionary algorithm to a simulator is usually a project in itself; with FREVO and COSMOS the training and evaluation loop is already in place, and the same configuration can be rerun to reproduce and compare experiments. The rules found in this way still need to be confirmed on a real deployment, which is why they are first evaluated in COSMOS on topologies that reflect the target system.

Users


System designers and researchers working on orchestration for the edge-fog-cloud continuum, especially those exploring evolutionary and neural network based decision-making. Their work is to design and optimize the local rules that edge and fog agents follow, to experiment with different decision models, to evaluate the resulting agent behaviours in simulated environments, and to fit rule generation into their wider simulation and analysis workflow. FREVO supports each of these steps, from the choice of the model to the training and the evaluation of the best candidate.

More generally, FREVO is useful to anyone who needs to engineer the behaviour of self-organizing, agent-based systems. Developers can extend it with new problems, representations and optimization methods, or connect it to their own simulators.

Application Domains


FREVO has been applied to cooperative robotics, self-organizing cellular automata and smart grid optimization, for example with evolved neural networks managing dynamic energy markets. In MYRTUS it is used for the design of local workload placement rules in large-scale edge-fog-cloud systems.

References


  • A. Sobe, I. Fehérvári, W. Elmenreich, “FREVO: A tool for evolving and evaluating self-organizing systems”, 2012.
  • M. Schranz, A. Farshad, W. Elmenreich, Engineering Swarms of Cyber-Physical Systems, CRC Press, 2025.
  • N. Varzonova, M. Schranz, “COSMOS: A Simulation Framework for Swarm-Based Orchestration in the Edge-Fog-Cloud Continuum”, in Proc. SIMULTECH 2025, pp. 390-397, doi: 10.5220/0013645000003970.
  • Code: github.com/smartgrids-aau/Frevo, sourceforge.net/projects/frevo
Competenze

Postato il

30 Gennaio 2025