Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriyvan committed Oct 2, 2023
1 parent c288f09 commit 9c68980
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/geometrize/GeometrizeModelHillClimb.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ import Foundation
/// The model class is the model for the core optimization/fitting algorithm.
class GeometrizeModelHillClimb: GeometrizeModelBase {

// Runs concurrently maxThreads optimization sessions and returns array of optimization results.
// step function then takes the only result with the best score.
// Therefore it does make sense decrease shapeCount proportionally when increasing maxThreads
// to achieve same effectiveness.
private func getHillClimbState( // swiftlint:disable:this function_parameter_count
shapeCreator: () -> any Shape,
alpha: UInt8,
Expand Down

0 comments on commit 9c68980

Please sign in to comment.