Skip to content

Commit

Permalink
Updated deps.
Browse files Browse the repository at this point in the history
  • Loading branch information
simphotonics committed May 30, 2024
1 parent 907ca86 commit b2328ca
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 42 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

## 0.4.0
- Updated deps.
- Dart version ^3.0.0 required

## 0.3.8
- Updated deps.

Expand Down
2 changes: 0 additions & 2 deletions lib/simulated_annealing.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/// Simulated Annealing framework for Dart.
export 'src/extensions/random_in_range.dart';
export 'src/framework/annealing_schedule.dart';
export 'src/framework/data_log.dart';
Expand Down
24 changes: 8 additions & 16 deletions lib/src/framework/logging_simulator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,14 @@ class LoggingSimulator extends Simulator {
/// * sampleSize: Size of sample used to estimate the start temperature
/// and the final temperature of the annealing process.
LoggingSimulator(
EnergyField field, {
num gammaStart = 0.8,
num gammaEnd = 0.1,
int outerIterations = 750,
int innerIterationsStart = 5,
int innerIterationsEnd = 20,
int sampleSize = 500,
}) : super(
field,
gammaStart: gammaStart,
gammaEnd: gammaEnd,
outerIterations: outerIterations,
sampleSize: sampleSize,
innerIterationsStart: innerIterationsStart,
innerIterationsEnd: innerIterationsEnd,
);
super.field, {
super.gammaStart = 0.8,
super.gammaEnd = 0.1,
super.outerIterations,
super.innerIterationsStart,
super.innerIterationsEnd,
super.sampleSize,
});

/// Stored the simulator data log. Works with the extensions `DataLog` and
/// `Export`.
Expand Down
22 changes: 14 additions & 8 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,25 @@ name: simulated_annealing
description: Simulated annealing framework for finding the global minimum of
multi-variate functions.

version: 0.3.8
version: 0.4.0

homepage: https://github.com/simphotonics/simulated_annealing

topics:
- simulated-annealing
- global
- minimum
- multi-variate

environment:
sdk: '>=2.19.0 <3.0.0'
sdk: '^3.0.0'

dependencies:
exception_templates: ^0.2.4
lazy_memo: ^0.1.7
list_operators: ^0.4.2
exception_templates: ^0.3.1
lazy_memo: ^0.2.3
list_operators: ^0.5.0

dev_dependencies:
lints: ^2.0.1
matcher: ^0.12.14
test: ^1.24.1
lints: ^4.0.0
matcher: ^0.12.16+1
test: ^1.25.5
24 changes: 8 additions & 16 deletions test/src/snapshot_logging_simulator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,16 @@ class SnapshotLoggingSimulator extends LoggingSimulator {
/// and the final temperature of the annealing process.
/// Not included with the framework because the class uses dart:io.
SnapshotLoggingSimulator(
EnergyField field, {
super.field, {
required this.outputPath,
this.nth = 1,
num gammaStart = 0.8,
num gammaEnd = 0.1,
int outerIterations = 750,
int innerIterationsStart = 5,
int innerIterationsEnd = 20,
int sampleSize = 500,
}) : super(
field,
gammaStart: gammaStart,
gammaEnd: gammaEnd,
outerIterations: outerIterations,
innerIterationsStart: innerIterationsStart,
innerIterationsEnd: innerIterationsEnd,
sampleSize: sampleSize,
);
super.gammaStart,
super.gammaEnd,
super.outerIterations,
super.innerIterationsStart,
super.innerIterationsEnd,
super.sampleSize,
});

int _frameCounter = -1;

Expand Down

0 comments on commit b2328ca

Please sign in to comment.