README.md

August 10, 2025 · View on GitHub

Welcome to MeLA!

Usage Instructions

  1. PyCharm Setup • Ensure PyCharm is installed and configured.

  2. Script Parameters Configuration In main.py, set the following ​Script Parameters​ (example for the ​ACS​ problem):

llm_client=openai
llm_client.api_key="Your_API_Key"
problem=acs
init_pop_size=20
pop_size=10
max_fe=50
timeout=300

  1. Adding a New Problem When creating a new problem:

• Follow the structure of existing problems in the evaluatorsfolder (e.g., the ​ACS​ example).

• Add a corresponding ​YAML​ configuration file in cfg/problemwith the following format:

problem_name: acs
problem_type: scso
obj_type: min
func_name: heuristics

  1. Modifying ELE.py For different problems, update these two lines in ELE.py:

file_path = os.path.join(current_dir, 'experts', '<problem_type>.txt')
file_path = os.path.join(current_dir, 'promoter', '<init_code_file>.txt')

Required .txt Files for Each Problem

ProblemExperts File (experts/)Promoter File (promoter/)
ACS, WSNscso.txtinit_code_empty.txt
TSPtsp.txtinit_code_tsp.txt
BPPbpp.txtinit_code_bpp.txt
  1. Running the Algorithm Execute main.pyin PyCharm with the configured parameters.

This READMEprovides a concise translation of the original instructions. Let me know if further adjustments are needed! 🚀