iamaya2 / MatHH

A Matlab-based Hyper-Heuristic framework
MIT License
6 stars 1 forks source link

Create instance splitter #10

Open iamaya2 opened 2 years ago

iamaya2 commented 2 years ago

Add a method to the JSSP class for splitting an existing instance dataset into two subsets (e.g. for training and testing).

Inputs:

  1. Cell array with ready to use instances
  2. Split ratio (value between 0 and 1) that will be assigned to the first subset
  3. (Optional) Seed that will be used to re-initialize the rng. Default: No re-initialization

Outputs:

  1. Subset1 (cell array)
  2. Subset2 (cell array)