Skip to content

Problems of Examples for Lecture 1 #1

@the0demiurge

Description

@the0demiurge

The control objective is to control x to xf, so for feedback control, the controller should be -k_p*(x[0] - xf[0]) - k_d * (x[1] - xf[1]), and the costs of optimal control should be added with cp.sub_squares(x[t]-x[f])+cp.sub_squares(u[t]).

before:
image

after:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions