Java Code Examples for org.apache.commons.math3.ode.sampling.StepHandler#init()

The following examples show how to use org.apache.commons.math3.ode.sampling.StepHandler#init() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AbstractIntegrator.java    From astor with GNU General Public License v2.0 6 votes vote down vote up
/** Prepare the start of an integration.
 * @param t0 start value of the independent <i>time</i> variable
 * @param y0 array containing the start value of the state vector
 * @param t target time for the integration
 */
protected void initIntegration(final double t0, final double[] y0, final double t) {

    evaluations.resetCount();

    for (final EventState state : eventsStates) {
        state.setExpandable(expandable);
        state.getEventHandler().init(t0, y0, t);
    }

    for (StepHandler handler : stepHandlers) {
        handler.init(t0, y0, t);
    }

    setStateInitialized(false);

}
 
Example 2
Source File: AbstractIntegrator.java    From astor with GNU General Public License v2.0 6 votes vote down vote up
/** Prepare the start of an integration.
 * @param t0 start value of the independent <i>time</i> variable
 * @param y0 array containing the start value of the state vector
 * @param t target time for the integration
 */
protected void initIntegration(final double t0, final double[] y0, final double t) {

    evaluations.resetCount();

    for (final EventState state : eventsStates) {
        state.setExpandable(expandable);
        state.getEventHandler().init(t0, y0, t);
    }

    for (StepHandler handler : stepHandlers) {
        handler.init(t0, y0, t);
    }

    setStateInitialized(false);

}
 
Example 3
Source File: AbstractIntegrator.java    From astor with GNU General Public License v2.0 6 votes vote down vote up
/** Prepare the start of an integration.
 * @param t0 start value of the independent <i>time</i> variable
 * @param y0 array containing the start value of the state vector
 * @param t target time for the integration
 */
protected void initIntegration(final double t0, final double[] y0, final double t) {

    evaluations.resetCount();

    for (final EventState state : eventsStates) {
        state.setExpandable(expandable);
        state.getEventHandler().init(t0, y0, t);
    }

    for (StepHandler handler : stepHandlers) {
        handler.init(t0, y0, t);
    }

    setStateInitialized(false);

}
 
Example 4
Source File: AbstractIntegrator.java    From astor with GNU General Public License v2.0 6 votes vote down vote up
/** Prepare the start of an integration.
 * @param t0 start value of the independent <i>time</i> variable
 * @param y0 array containing the start value of the state vector
 * @param t target time for the integration
 */
protected void initIntegration(final double t0, final double[] y0, final double t) {

    evaluations.resetCount();

    for (final EventState state : eventsStates) {
        state.setExpandable(expandable);
        state.getEventHandler().init(t0, y0, t);
    }

    for (StepHandler handler : stepHandlers) {
        handler.init(t0, y0, t);
    }

    setStateInitialized(false);

}
 
Example 5
Source File: JGenProg2017_0030_t.java    From coming with MIT License 4 votes vote down vote up
/** Prepare the start of an integration.
 * @param t0 start value of the independent <i>time</i> variable
 * @param y0 array containing the start value of the state vector
 * @param t target time for the integration
 */
protected void initIntegration(final double t0, final double[] y0, final double t) {

    evaluations.resetCount();

    for (final EventState state : eventsStates) {
        state.getEventHandler().init(t0, y0, t);
    }

    for (StepHandler handler : stepHandlers) {
        handler.init(t0, y0, t);
    }

    setStateInitialized(false);

}
 
Example 6
Source File: JGenProg2017_0030_s.java    From coming with MIT License 4 votes vote down vote up
/** Prepare the start of an integration.
 * @param t0 start value of the independent <i>time</i> variable
 * @param y0 array containing the start value of the state vector
 * @param t target time for the integration
 */
protected void initIntegration(final double t0, final double[] y0, final double t) {

    evaluations.resetCount();

    for (final EventState state : eventsStates) {
        state.getEventHandler().init(t0, y0, t);
    }

    for (StepHandler handler : stepHandlers) {
        handler.init(t0, y0, t);
    }

    setStateInitialized(false);

}
 
Example 7
Source File: Nopol2017_0077_s.java    From coming with MIT License 4 votes vote down vote up
/** Prepare the start of an integration.
 * @param t0 start value of the independent <i>time</i> variable
 * @param y0 array containing the start value of the state vector
 * @param t target time for the integration
 */
protected void initIntegration(final double t0, final double[] y0, final double t) {

    evaluations.resetCount();

    for (final EventState state : eventsStates) {
        state.getEventHandler().init(t0, y0, t);
    }

    for (StepHandler handler : stepHandlers) {
        handler.init(t0, y0, t);
    }

    setStateInitialized(false);

}
 
Example 8
Source File: Nopol2017_0077_t.java    From coming with MIT License 4 votes vote down vote up
/** Prepare the start of an integration.
 * @param t0 start value of the independent <i>time</i> variable
 * @param y0 array containing the start value of the state vector
 * @param t target time for the integration
 */
protected void initIntegration(final double t0, final double[] y0, final double t) {

    evaluations.resetCount();

    for (final EventState state : eventsStates) {
        state.getEventHandler().init(t0, y0, t);
    }

    for (StepHandler handler : stepHandlers) {
        handler.init(t0, y0, t);
    }

    setStateInitialized(false);

}
 
Example 9
Source File: Math_7_AbstractIntegrator_t.java    From coming with MIT License 4 votes vote down vote up
/** Prepare the start of an integration.
 * @param t0 start value of the independent <i>time</i> variable
 * @param y0 array containing the start value of the state vector
 * @param t target time for the integration
 */
protected void initIntegration(final double t0, final double[] y0, final double t) {

    evaluations.resetCount();

    for (final EventState state : eventsStates) {
        state.getEventHandler().init(t0, y0, t);
    }

    for (StepHandler handler : stepHandlers) {
        handler.init(t0, y0, t);
    }

    setStateInitialized(false);

}
 
Example 10
Source File: Math_7_AbstractIntegrator_s.java    From coming with MIT License 4 votes vote down vote up
/** Prepare the start of an integration.
 * @param t0 start value of the independent <i>time</i> variable
 * @param y0 array containing the start value of the state vector
 * @param t target time for the integration
 */
protected void initIntegration(final double t0, final double[] y0, final double t) {

    evaluations.resetCount();

    for (final EventState state : eventsStates) {
        state.getEventHandler().init(t0, y0, t);
    }

    for (StepHandler handler : stepHandlers) {
        handler.init(t0, y0, t);
    }

    setStateInitialized(false);

}
 
Example 11
Source File: AbstractIntegrator.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/** Prepare the start of an integration.
 * @param t0 start value of the independent <i>time</i> variable
 * @param y0 array containing the start value of the state vector
 * @param t target time for the integration
 */
protected void initIntegration(final double t0, final double[] y0, final double t) {

    evaluations.resetCount();

    for (final EventState state : eventsStates) {
        state.getEventHandler().init(t0, y0, t);
    }

    for (StepHandler handler : stepHandlers) {
        handler.init(t0, y0, t);
    }

    setStateInitialized(false);

}
 
Example 12
Source File: AbstractIntegrator.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/** Prepare the start of an integration.
 * @param t0 start value of the independent <i>time</i> variable
 * @param y0 array containing the start value of the state vector
 * @param t target time for the integration
 */
protected void initIntegration(final double t0, final double[] y0, final double t) {

    evaluations.resetCount();

    for (final EventState state : eventsStates) {
        state.getEventHandler().init(t0, y0, t);
    }

    for (StepHandler handler : stepHandlers) {
        handler.init(t0, y0, t);
    }

    setStateInitialized(false);

}
 
Example 13
Source File: AbstractIntegrator.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/** Prepare the start of an integration.
 * @param t0 start value of the independent <i>time</i> variable
 * @param y0 array containing the start value of the state vector
 * @param t target time for the integration
 */
protected void initIntegration(final double t0, final double[] y0, final double t) {

    evaluations.resetCount();

    for (final EventState state : eventsStates) {
        state.getEventHandler().init(t0, y0, t);
    }

    for (StepHandler handler : stepHandlers) {
        handler.init(t0, y0, t);
    }

    setStateInitialized(false);

}
 
Example 14
Source File: AbstractIntegrator.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/** Prepare the start of an integration.
 * @param t0 start value of the independent <i>time</i> variable
 * @param y0 array containing the start value of the state vector
 * @param t target time for the integration
 */
protected void initIntegration(final double t0, final double[] y0, final double t) {

    evaluations.resetCount();

    for (final EventState state : eventsStates) {
        state.getEventHandler().init(t0, y0, t);
    }

    for (StepHandler handler : stepHandlers) {
        handler.init(t0, y0, t);
    }

    setStateInitialized(false);

}