Skip to content

caslabuiowa/BeBOT_cpp

Repository files navigation

BeBOT_cpp

This repository contains the implementation of the Bernstein/Bezier Optimal Trajectories toolkit BeBOT. Python and Matlab implementations of this library are also available here Python BeBOT and MATLAB BeBOT.

Requirements

To run this examples you must have the following installed:

We reccomed following the following guide to install Ipopt and its dependencies https://coin-or.github.io/Ipopt/INSTALL.html

Example 1

In the example provided, the following optimal control problem is solved using Bernstein polynomials.

min x ( t ) , u ( t ) , t f 0 t f 1 , d τ

subject to:

x 1 ( t ) ˙ = x 2 ( t ) , x 2 ( t ) ˙ = u ( t ) ,

x 1 ( 0 ) = 3 , x 2 ( 0 ) = 0 , x 1 ( t f ) = 0 , x 2 ( t f ) = 0 ,

u ( t ) a max , u ( t ) a min