Skip to content

Commit

Permalink
change solver.py
Browse files Browse the repository at this point in the history
  • Loading branch information
YaniKolt committed Aug 2, 2023
1 parent c45bbbd commit e9e7b7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iOpt/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ def load_progress(self, file_name: str) -> None:
self.process.load_progress(file_name=file_name)

if (self.problem.number_of_discrete_variables > 0):
self.process.method.iterationsCount = self.process.search_data.get_count() - (len(self.method.GetDiscreteParameters(self.problem)) + 1 ) #-2
else: self.process.method.iterationsCount = self.process.search_data.get_count()-2
self.process.method.iterations_count = self.process.search_data.get_count() - (len(self.method.GetDiscreteParameters(self.problem)) + 1 ) #-2
else: self.process.method.iterations_count = self.process.search_data.get_count() - 2

def refresh_listener(self) -> None:
"""
Expand Down

1 comment on commit e9e7b7f

@kozinove
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Я бы считал число испытаний в загрузке. Испытания имеют индексы >=0

Please sign in to comment.