mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
add new and unique random instance to ensure reproducibility of several run within the same jvm
This commit is contained in:
parent
5fb9b3c73d
commit
67dc13d836
1 changed files with 1 additions and 6 deletions
|
|
@ -19,7 +19,6 @@ import jsprit.core.problem.vehicle.VehicleImpl;
|
|||
import jsprit.core.util.RandomNumberGeneration;
|
||||
import jsprit.core.util.Solutions;
|
||||
import junit.framework.Assert;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.util.*;
|
||||
|
|
@ -29,11 +28,7 @@ import java.util.*;
|
|||
*/
|
||||
public class JspritTest {
|
||||
|
||||
@Before
|
||||
public void doBefore(){
|
||||
|
||||
// RandomNumberGeneration.reset();
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
|
|
@ -547,7 +542,7 @@ public class JspritTest {
|
|||
}
|
||||
}
|
||||
Assert.assertTrue(true);
|
||||
Assert.assertEquals(Solutions.bestOf(firstSolutions).getCost(),Solutions.bestOf(secondSolutions).getCost());
|
||||
Assert.assertEquals(Solutions.bestOf(firstSolutions).getCost(), Solutions.bestOf(secondSolutions).getCost());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue