Hi,

On Wed, Feb 18, 2009 at 12:26 PM, flyeng4 <williamhpurc...@gmail.com> wrote:
>
> I am trying to use sympy to solve a couple optimal control problems
> with the Pontryagin Maximum Principle.  Right now I am trying to solve
> a single problem in an ad hoc fashion and then I will hopefully be
> able to add some generality to this.  To get started I need help with

Interesting application.

> solving an equation such as
>
> h = x + (y-1)*u*x
>
> where u is my control variable. Specifically I need to maximize h with
> respect to u.  u is restricted by [-1:1], x is a positive real number,
> and y is a real number.  The answer I want is
>
>      { 0 if y-1 < 1
> u = {
>      { 1 if y-1 > 1
>
> Is there a way to do something like this?

Not currently, but I would be very interested to have this. Do you
know some general algorithm to do this kind of optimization
symbolically?

Ondrej

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to sympy@googlegroups.com
To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sympy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to