A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://python-control.readthedocs.io/en/stable/generated/control.optimal.quadratic_cost.html below:

Website Navigation


control.optimal.quadratic_cost — Python Control Systems Library 0.10.2 documentation

control.optimal.quadratic_cost
control.optimal.quadratic_cost(sys, Q, R, x0=0, u0=0)[source]

Create quadratic cost function.

Returns a quadratic cost function that can be used for an optimal control problem. The cost function is of the form

cost = (x - x0)^T Q (x - x0) + (u - u0)^T R (u - u0)

Parameters:
sysInputOutputSystem

I/O system for which the cost function is being defined.

Q2D array_like

Weighting matrix for state cost. Dimensions must match system state.

R2D array_like

Weighting matrix for input cost. Dimensions must match system input.

x01D array

Nominal value of the system state (for which cost should be zero).

u01D array

Nominal value of the system input (for which cost should be zero).

Returns:
cost_funcallable

Function that can be used to evaluate the cost at a given state and input. The call signature of the function is cost_fun(x, u).


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4