-
Notifications
You must be signed in to change notification settings - Fork 19
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Geometric minimal action method #353
Comments
This type of error occurs when the objective and/or constraints have a function or derivative that is ill-posed (e.g., divides by zero, takes the square root of a negative number). In this case, adding appropriate guesses to Regarding your formulation, what are On a side note, it is preferred that issues are reserved for bugs/feature requests and that usage questions like this one are asked in the forum (i.e., the Discussions tab). |
Ha good catch, I will try.
My apologies, I wasn't aware. I think you can convert it to a discussion in the sidebar. |
I would like to compute the maximum likelihood path (MLP) of an underdamped stochastic ordinary system. Suppose we SDE of the form: with where A typical example would be a double well problem such as the Maier Stein system given as: where one wants to know the optimal path between the two attractors (-1, 0) and (1, 0). If I correct my mistake of the derivative: using InfiniteOpt, Ipopt, Plots
T = 1
opt = Ipopt.Optimizer # desired solver
ns = 101; # number of points in the time grid
model = InfiniteModel(optimizer_with_attributes(opt));
@infinite_parameter(model, t in [0, T], num_supports = ns)
xx(t) = -1*(1-t) + 1*t
xxx = xx.(supports(t))
yy(t) = 0.3 .* (- xx(t) .^ 2 .+ 1)
yyy = yy.(supports(t))
scatter(xxx, yyy)
@variable(model, u, Infinite(t), start = xx)
@variable(model, v, Infinite(t), start = yy)
@objective(model, Min, ∫(√(∂(u, t)^2 + ∂(u, t)^2)*√(u^2 + v^2) - (∂(u, t)*u + ∂(u, t)*v), t))
@constraint(model, u(0) == -1)
@constraint(model, v(0) == 0)
@constraint(model, u(T) == 1)
@constraint(model, v(T) == 0)
@constraint(model, ∂(u, t) == u - u^3 - 10*u*v^2)
@constraint(model, ∂(v, t) == -(1 - u^2)*v )
optimize!(model) Ipopt says I have to0 few degrees of freedom:
Do I have to introduce the velocity as a separate variable? |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
When I try to optimise the following system Ipopt complains that the system is not differentiable. Is the following intergral expression invalid?
The text was updated successfully, but these errors were encountered: