Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPU Stop criteria for single run is not working! #5

Closed
Mir1001 opened this issue Oct 3, 2017 · 1 comment
Closed

CPU Stop criteria for single run is not working! #5

Mir1001 opened this issue Oct 3, 2017 · 1 comment

Comments

@Mir1001
Copy link
Contributor

Mir1001 commented Oct 3, 2017

In case of:

public class Main4Run {

public static void main(String[] args) {
	Task t = new Task(EnumStopCriteria.CPU_TIME, 5000, 1000, 0, 0.0001, new Sphere(5)); //run problem Sphere Dimension 5, 3000 evaluations
	RandomWalkAlgorithm test = new RandomWalkAlgorithm();
	try {
		System.out.println(test.execute(t)); //prints best result afrer 3000 runs
	} catch (StopCriteriaException e) {
		e.printStackTrace();
	}
}

}
CPU Time is not working for single run!

@Ravby
Copy link
Member

Ravby commented Oct 3, 2017

Initial time was not set.
Added startTimer to Task.

@Ravby Ravby closed this as completed Oct 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants