Skip to content

Commit

Permalink
unexported the function
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsbeck committed Oct 16, 2024
1 parent 6250e1d commit 884d42b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions model_objective_stop_balancing.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ func (t *balanceObjectiveImpl) EstimateDeltaValue(
move Move,
) float64 {
solution := move.Solution()
oldMax, newMax := t.MaxStops(solution, move)
oldMax, newMax := t.maxStops(solution, move)
return float64(newMax - oldMax)
}

func (t *balanceObjectiveImpl) Value(solution Solution) float64 {
maxBefore, _ := t.MaxStops(solution, nil)
maxBefore, _ := t.maxStops(solution, nil)
return float64(maxBefore)
}

func (t *balanceObjectiveImpl) MaxStops(solution Solution, move SolutionMoveStops) (int, int) {
func (t *balanceObjectiveImpl) maxStops(solution Solution, move SolutionMoveStops) (int, int) {
max := 0
maxBefore := 0
moveExists := move != nil
Expand Down

0 comments on commit 884d42b

Please sign in to comment.