~spidernet/PermutationFlowShopScheduling

341c989db39f37fc584e7f5391628a5dcc89cf43 — Gabriele Venturato 1 year, 9 months ago b9fd010
[LocalSearch] Removed unused methods from Data class
2 files changed, 0 insertions(+), 17 deletions(-)

M LocalSearch/include/FP_Data.hh
M LocalSearch/src/FP_Data.cc
M LocalSearch/include/FP_Data.hh => LocalSearch/include/FP_Data.hh +0 -3
@@ 20,7 20,6 @@ class FP_Input {
  size_t getReleaseDate(size_t job) const { return release_dates[job]; }
  int getDueDates(size_t job) const { return due_dates[job]; }
  size_t getWeight(size_t job) const { return weights[job]; }
  size_t getTotalDuration(size_t job) const;

 private:
  size_t jobs, machines;


@@ 37,10 36,8 @@ class FP_Output {
 public:
  FP_Output(const FP_Input& i);
  FP_Output& operator=(const FP_Output& out);
  void addJob(size_t j) { schedule.push_back(j); }
  size_t operator[](size_t j) const { return schedule[j]; }
  size_t& operator[](size_t j) { return schedule[j]; }
  vector<size_t>& getSchedule() { return schedule; }

 protected:
  const FP_Input& in;

M LocalSearch/src/FP_Data.cc => LocalSearch/src/FP_Data.cc +0 -14
@@ 97,20 97,6 @@ ostream& operator<<(ostream& os, const FP_Input& in) {
  return os;
}

/*!
 * @brief Return the total duration of a job as the sum of the processing
 * time of each machine for that particular job.
 * @param[in] job The job for which we compute its total duration.
 * @return The completion time of the job.
 */
size_t FP_Input::getTotalDuration(size_t job) const {
  size_t res = 0;
  for (size_t m = 0; m < machines; ++m) {
    res += durations[job][m];
  }
  return res;
}

FP_Output::FP_Output(const FP_Input& my_in)
    : in(my_in) {
  schedule.resize( in.getJobs() );