Java Code Examples for org.apache.commons.math3.exception.util.LocalizedFormats#UNMATCHED_ODE_IN_EXPANDED_SET

The following examples show how to use org.apache.commons.math3.exception.util.LocalizedFormats#UNMATCHED_ODE_IN_EXPANDED_SET . 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: JacobianMatrices.java    From astor with GNU General Public License v2.0 6 votes vote down vote up
/** Register the variational equations for the Jacobians matrices to the expandable set.
 * @param expandable expandable set into which variational equations should be registered
 * @exception MathIllegalArgumentException if the primary set of the expandable set does
 * not match the one used to build the instance
 * @see ExpandableStatefulODE#addSecondaryEquations(SecondaryEquations)
 */
public void registerVariationalEquations(final ExpandableStatefulODE expandable)
    throws MathIllegalArgumentException {

    // safety checks
    final FirstOrderDifferentialEquations ode = (jode instanceof MainStateJacobianWrapper) ?
                                                ((MainStateJacobianWrapper) jode).ode :
                                                jode;
    if (expandable.getPrimary() != ode) {
        throw new MathIllegalArgumentException(LocalizedFormats.UNMATCHED_ODE_IN_EXPANDED_SET);
    }

    efode = expandable;
    index = efode.addSecondaryEquations(new JacobiansSecondaryEquations());
    efode.setSecondaryState(index, matricesData);

}
 
Example 2
Source File: JacobianMatrices.java    From astor with GNU General Public License v2.0 6 votes vote down vote up
/** Register the variational equations for the Jacobians matrices to the expandable set.
 * @param expandable expandable set into which variational equations should be registered
 * @exception MathIllegalArgumentException if the primary set of the expandable set does
 * not match the one used to build the instance
 * @see ExpandableStatefulODE#addSecondaryEquations(SecondaryEquations)
 */
public void registerVariationalEquations(final ExpandableStatefulODE expandable)
    throws MathIllegalArgumentException {

    // safety checks
    final FirstOrderDifferentialEquations ode = (jode instanceof MainStateJacobianWrapper) ?
                                                ((MainStateJacobianWrapper) jode).ode :
                                                jode;
    if (expandable.getPrimary() != ode) {
        throw new MathIllegalArgumentException(LocalizedFormats.UNMATCHED_ODE_IN_EXPANDED_SET);
    }

    efode = expandable;
    index = efode.addSecondaryEquations(new JacobiansSecondaryEquations());
    efode.setSecondaryState(index, matricesData);

}
 
Example 3
Source File: JacobianMatrices.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/** Simple constructor. */
public MismatchedEquations() {
    super(LocalizedFormats.UNMATCHED_ODE_IN_EXPANDED_SET);
}
 
Example 4
Source File: JacobianMatrices.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/** Simple constructor. */
public MismatchedEquations() {
    super(LocalizedFormats.UNMATCHED_ODE_IN_EXPANDED_SET);
}
 
Example 5
Source File: JacobianMatrices.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/** Simple constructor. */
public MismatchedEquations() {
    super(LocalizedFormats.UNMATCHED_ODE_IN_EXPANDED_SET);
}
 
Example 6
Source File: JacobianMatrices.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/** Simple constructor. */
public MismatchedEquations() {
    super(LocalizedFormats.UNMATCHED_ODE_IN_EXPANDED_SET);
}
 
Example 7
Source File: JacobianMatrices.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/** Simple constructor. */
public MismatchedEquations() {
    super(LocalizedFormats.UNMATCHED_ODE_IN_EXPANDED_SET);
}
 
Example 8
Source File: JacobianMatrices.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/** Simple constructor. */
public MismatchedEquations() {
    super(LocalizedFormats.UNMATCHED_ODE_IN_EXPANDED_SET);
}