new HighamHall54Integrator(minStep, maxStep,
scalAbsoluteTolerance, scalRelativeTolerance);
TestProblemHandler handler = new TestProblemHandler(pb, integ);
integ.setStepHandler(handler);
integ.addSwitchingFunction(new SwitchingFunction() {
public int eventOccurred(double t, double[] y) {
return SwitchingFunction.CONTINUE;
}
public double g(double t, double[] y) throws FunctionEvaluationException {
double middle = (pb.getInitialTime() + pb.getFinalTime()) / 2;