Skip to content

Latest commit

 

History

33 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Math 589B Final Programming Project (Spring 2026)

Problem

We consider the controlled pendulum:

$$ \ddot{\theta} = \sin(\theta) - \alpha \dot{\theta} + u \cos(\theta) $$

State: $x = (\theta, \phi)$

Cost:

$$ \int_0^\infty \left[(1 - \cos \theta) + \frac{1}{2}\phi^2 + \frac{1}{2}u^2\right] dt $$

Optimal control: $u^* = -\lambda_2 \cos(\theta)$

Task

Given: $\theta, \phi, \alpha$

Return: $\lambda_1, \lambda_2, J$

Program Interface

./solver theta phi alpha

Output: lambda1 lambda2 J

More details coming this week.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages