You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Luc Maisonobe <Lu...@free.fr> on 2009/06/04 23:52:51 UTC
[math] Re: ODE Question
Angelo Port a écrit :
> Hi,
Hello,
First, please use a marker like [math] when posting to this list
according to the commons component you use. This list is shared by
several components, so it helps subscribers filter the messages.
>
>
>
> I am attempting to use the Dormand-Prince 54 integrator. I get the following
> error:
>
> org.apache.commons.math.ode.IntegratorException: dimensions mismatch: ODE
> problem has dimension 0, initial state vector has dimension 6
> at
> org.apache.commons.math.ode.AdaptiveStepsizeIntegrator.sanityChecks(AdaptiveStepsizeIntegrator.java:177)
> at
> org.apache.commons.math.ode.EmbeddedRungeKuttaIntegrator.integrate(EmbeddedRungeKuttaIntegrator.java:179)
>
> Did I forget to set the dimension? If so, how is this done?
The problem you pass to the integrator implements the
FirstOrderDifferentialEquations interfaces, which has a getDimension()
method. This method must provide the dimension of the set of
differential equations it computes. In your case, I guess you should have:
public int getDimension() {
return 6;
}
This must be consistent with the dimension of the state vector.
Luc
>
>
>
> Angelo
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org
Re: [math] Re: ODE Question
Posted by Angelo Port <an...@boeing.com>.
Luc,
Ok, I missed that. I will post as stated next time.
I did set it, but not to 6, my mistake.
Thanks for the help,
Angelo
Luc Maisonobe wrote:
>
> Angelo Port a écrit :
>> Hi,
>
> Hello,
>
> First, please use a marker like [math] when posting to this list
> according to the commons component you use. This list is shared by
> several components, so it helps subscribers filter the messages.
>
>>
>>
>>
>> I am attempting to use the Dormand-Prince 54 integrator. I get the
>> following
>> error:
>>
>> org.apache.commons.math.ode.IntegratorException: dimensions mismatch: ODE
>> problem has dimension 0, initial state vector has dimension 6
>> at
>> org.apache.commons.math.ode.AdaptiveStepsizeIntegrator.sanityChecks(AdaptiveStepsizeIntegrator.java:177)
>> at
>> org.apache.commons.math.ode.EmbeddedRungeKuttaIntegrator.integrate(EmbeddedRungeKuttaIntegrator.java:179)
>>
>> Did I forget to set the dimension? If so, how is this done?
>
> The problem you pass to the integrator implements the
> FirstOrderDifferentialEquations interfaces, which has a getDimension()
> method. This method must provide the dimension of the set of
> differential equations it computes. In your case, I guess you should have:
>
> public int getDimension() {
> return 6;
> }
>
> This must be consistent with the dimension of the state vector.
>
> Luc
>
>>
>>
>>
>> Angelo
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/ODE-Question-tp23878418p23878659.html
Sent from the Commons - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org