Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TobiaMarcucci/pympc
/ functions
Functions
198 in github.com/TobiaMarcucci/pympc
⨍
Functions
198
◇
Types & classes
26
↓ 1 callers
Method
simulate
Given the initial state x0 and a list of inputs, simulates the PWA dynamics. If the couple (x(t), u(t)) goes out of the domains D_i r
pympc/dynamics/discrete_time_systems.py:493
↓ 1 callers
Method
simulate_closed_loop
Simulates the system starting from the state x0 for N steps in closed loop with the feedback law u = K x. Arguments --------
pympc/dynamics/discrete_time_systems.py:68
↓ 1 callers
Method
store_explicit_solution
Solves the mpqp (condensed optimal control problem) explicitly. Returns ---------- instance of ExplicitSolution
pympc/control/controllers.py:126
↓ 1 callers
Method
test_linear_program
(self, solver='pnnls')
pympc/test/test_optimization/test_programs.py:14
↓ 1 callers
Method
test_linear_programming_solver
(self, linear_program=lp_pnnls)
pympc/test/test_optimization/test_solvers.py:12
↓ 1 callers
Method
test_quadratic_program
(self, solver='pnnls')
pympc/test/test_optimization/test_programs.py:71
↓ 1 callers
Method
test_quadratic_programming_solver
(self, quadratic_program=qp_pnnls)
pympc/test/test_optimization/test_solvers.py:263
Method
V
Numeric value of the optimal value function at the point x. Arguments ---------- x : numpy.ndarray Point
pympc/optimization/parametric_programs.py:511
Method
_DoCalcVectorOutput
(self, context, plant_state, unused, plant_input)
examples/pwa_from_urdf/utils.py:235
Method
__init__
Initilizes the controller. Arguments ---------- S : instance of LinerSystem Linear system to be controll
pympc/control/controllers.py:21
Method
__init__
Initilizes the controller. Arguments ---------- S : instance of PieceWiseAffineSystem PWA system to be co
pympc/control/controllers.py:254
Method
__init__
Instantiates the polyhedron. Arguments ---------- A : numpy.ndarray Left-hand side of the inequalities.
pympc/geometry/polyhedron.py:20
Method
__init__
Instantiates the parametric mpQP. Arguments ---------- H : dict of numpy.ndarray Blocks of the quaratic
pympc/optimization/parametric_programs.py:18
Method
__init__
Instatiates the critical region. Arguments ---------- active_set : list of int List of the indices of th
pympc/optimization/parametric_programs.py:268
Method
__init__
Stores the set of critical regions. Arguments ---------- critical_regions : list of intances of CriticalRegion
pympc/optimization/parametric_programs.py:431
Method
__init__
Initializes the mpMIQP. Arguments ----------- H : dict of numpy.ndarry Dictionary with the blocks of the
pympc/optimization/parametric_programs.py:549
Method
__init__
Initializes the discrete-time linear system. Arguments ---------- A : numpy.ndarray State transition mat
pympc/dynamics/discrete_time_systems.py:17
Method
__init__
Initializes the discrete-time affine system. Arguments ---------- A : numpy.ndarray State transition mat
pympc/dynamics/discrete_time_systems.py:290
Method
__init__
Initializes the discrete-time piecewise-affine system. Arguments ---------- affine_systems : list of instances of Af
pympc/dynamics/discrete_time_systems.py:439
Method
__init__
Arguments ---------- S : PieceWiseAffineSystem PWA system to be controlled. N : int Horizon o
examples/pwa_from_urdf/utils.py:213
Method
__init__
(self, S, N, Q, R, P, X_N)
examples/pwa_from_urdf/utils.py:241
Method
b
Right hand side of the inequalities describing the critical region. Returns ---------- numpy.ndarray Rig
pympc/optimization/parametric_programs.py:415
Method
bounded
Checks if the polyhedron is bounded (returns True or False). Math ---------- Consider the non-empty polyhedron P :=
pympc/geometry/polyhedron.py:529
Method
center
Returns the Chebyshev center of the polyhedron (see self._chebyshev()). Returns ---------- center : numpy.ndarray
pympc/geometry/polyhedron.py:708
Method
controllable
(self)
pympc/dynamics/discrete_time_systems.py:187
Method
empty
Checks if the polyhedron P is empty solving a QP for the x with minimum norm contained in P. Returns ---------- empt
pympc/geometry/polyhedron.py:506
Method
from_continuous
Instantiates a discrete-time affine system starting from its continuous time representation. Arguments ---------- A
pympc/dynamics/discrete_time_systems.py:362
Method
from_symbolic
Instatiates a LinearSystem starting from the symbolic value of the next state. Arguments ---------- x : sympy matrix
pympc/dynamics/discrete_time_systems.py:234
Method
from_symbolic
Instatiates a AffineSystem starting from the symbolic value of the next state. Arguments ---------- x : sympy matrix
pympc/dynamics/discrete_time_systems.py:394
Method
from_symbolic_continuous
Instatiates a LinearSystem starting from the symbolic value of the next state. Arguments ---------- x : sympy matrix
pympc/dynamics/discrete_time_systems.py:411
Function
linear_program
Solves the linear program min_x f^T x s.t. A x <= b, C x = d. Finds a partially nonnegative least squares solution to the KKT conditions of t
pympc/optimization/solvers/pnnls.py:41
Function
linear_program
Solves the linear program min_x f^T x s.t. A x <= b, C x = d. Arguments ---------- f : numpy.ndarray Gradient of the cost fu
pympc/optimization/solvers/drake.py:6
Function
linear_program
Solves the linear program min_x f^T x s.t. A x <= b, C x = d. Arguments ---------- f : numpy.ndarray Gradient of the cost fu
pympc/optimization/solvers/gurobi.py:5
Function
mixed_integer_quadratic_program
Solves the strictly convex (H > 0) mixed-integer quadratic program min .5 x' H x + f' x s.t. A x <= b, C x = d. The first nc variables in x
pympc/optimization/solvers/drake.py:191
Function
mixed_integer_quadratic_program
Solves the strictly convex (H > 0) mixed-integer quadratic program min .5 x' H x + f' x s.t. A x <= b, C x = d. The first nc variables in x
pympc/optimization/solvers/gurobi.py:120
Method
p
Numeric value of the dual optimizer at the point x. Arguments ---------- x : numpy.ndarray Point where w
pympc/optimization/parametric_programs.py:488
Function
plot_input_sequence
Plots the input sequence and its bounds as functions of time. Arguments ---------- u : list of numpy.ndarray Sequence of the
pympc/plot.py:54
Method
plot_optimal_value_function
Plots the level sets of the optimal value function V*(x). Arguments ---------- resolution : float Size o
pympc/control/controllers.py:212
Function
plot_output_trajectory
Plots the output trajectory and its bounds as functions of time. Arguments ---------- C : numpy.ndarray Tranformation matrix
pympc/plot.py:158
Method
plot_state_space_partition
Finds the critical region where the state x is, and returns the PWA feedforward. Arguments ---------- print_active_s
pympc/control/controllers.py:188
Function
plot_state_space_trajectory
Plots one component of the state x as a function of another (2d plot). Arguments ---------- x : list of numpy.ndarray Trajec
pympc/plot.py:5
Function
plot_state_trajectory
Plots the state trajectory and its bounds as functions of time. Arguments ---------- x : list of numpy.ndarray Sequence of t
pympc/plot.py:106
Function
pwa_from_RigidBodyPlant
Arguments ---------- plant : RigidBodyPlant RigidBodyPlant of the robot. linearization_points : list of numpy.ndarray
examples/pwa_from_urdf/utils.py:159
Function
quadratic_program
Solves the strictly convex (H > 0) quadratic program min .5 x' H x + f' x s.t. A x <= b, C x = d using nonnegative least squres. (See "Bempo
pympc/optimization/solvers/pnnls.py:149
Function
quadratic_program
Solves the strictly convex (H > 0) quadratic program min .5 x' H x + f' x s.t. A x <= b, C x = d. Arguments ---------- H : numpy.nd
pympc/optimization/solvers/drake.py:95
Function
quadratic_program
Solves the strictly convex (H > 0) quadratic program min .5 x' H x + f' x s.t. A x <= b, C x = d. Arguments ---------- H : numpy.nd
pympc/optimization/solvers/gurobi.py:60
Method
radius
Returns the Chebyshev radius of the polyhedron (see self._chebyshev()). Returns ---------- radius : float
pympc/geometry/polyhedron.py:688
Method
solve
Solves the mpMIQP for the given value of the parameter x. Arguments ---------- x : numpy.ndarry Numeric
pympc/optimization/parametric_programs.py:568
Method
test_add_functions
(self)
pympc/test/test_geometry/test_polyhedron.py:41
Method
test_bounded
(self)
pympc/test/test_geometry/test_polyhedron.py:395
Method
test_cartesian_product
(self)
pympc/test/test_geometry/test_polyhedron.py:551
Method
test_chebyshev
(self)
pympc/test/test_geometry/test_polyhedron.py:581
Method
test_check_affine_system
(self)
pympc/test/test_dynamics/test_utils.py:10
Method
test_condense_and_simulate
(self)
pympc/test/test_dynamics/test_discrete_time_systems.py:22
Method
test_condense_and_simulate
(self)
pympc/test/test_dynamics/test_discrete_time_systems.py:195
Method
test_condense_and_simulate_and_get_mode
(self)
pympc/test/test_dynamics/test_discrete_time_systems.py:325
Method
test_contains
(self)
pympc/test/test_geometry/test_polyhedron.py:449
Method
test_controllable
(self)
pympc/test/test_dynamics/test_discrete_time_systems.py:43
Method
test_convex_hull_method
(self)
pympc/test/test_geometry/test_polyhedron.py:846
Method
test_delete_attributes
(self)
pympc/test/test_geometry/test_polyhedron.py:756
Method
test_empty
(self)
pympc/test/test_geometry/test_polyhedron.py:376
Method
test_explicit_euler_and_zero_order_hold
(self)
pympc/test/test_dynamics/test_discretization_methods.py:10
Method
test_explicit_solution
(self)
pympc/test/test_control/test_controllers.py:103
Method
test_feedforward_feedback_and_get_mpqp
(self)
pympc/test/test_control/test_controllers.py:167
Method
test_from_continuous_and_symbolic
(self)
pympc/test/test_dynamics/test_discrete_time_systems.py:122
Method
test_from_continuous_and_symbolic
(self)
pympc/test/test_dynamics/test_discrete_time_systems.py:217
Method
test_from_convex_hull
(self)
pympc/test/test_geometry/test_polyhedron.py:634
Method
test_from_functions
(self)
pympc/test/test_geometry/test_polyhedron.py:134
Method
test_implicit_solution
(self)
pympc/test/test_control/test_controllers.py:13
Method
test_initialization
(self)
pympc/test/test_geometry/test_polyhedron.py:15
Method
test_intersection
(self)
pympc/test/test_geometry/test_polyhedron.py:523
Method
test_intialization
(self)
pympc/test/test_dynamics/test_discrete_time_systems.py:12
Method
test_intialization
(self)
pympc/test/test_dynamics/test_discrete_time_systems.py:180
Method
test_intialization
(self)
pympc/test/test_dynamics/test_discrete_time_systems.py:279
Method
test_is_included_in
(self)
pympc/test/test_geometry/test_polyhedron.py:472
Method
test_is_well_posed
(self)
pympc/test/test_dynamics/test_discrete_time_systems.py:392
Method
test_linear_program_gurobi
(self)
pympc/test/test_optimization/test_programs.py:66
Method
test_linear_programming_solver_gurobi
(self)
pympc/test/test_optimization/test_solvers.py:258
Method
test_linearly_independent_rows
(self)
pympc/test/test_geometry/test_utils.py:34
Method
test_mcais
Tests only if the function macais() il called correctly. For the tests of mcais() see the class TestMCAIS.
pympc/test/test_dynamics/test_discrete_time_systems.py:104
Method
test_mcais
(self)
pympc/test/test_dynamics/test_discrete_time_systems.py:420
Method
test_mixed_integer_quadratic_program_gurobi
(self)
pympc/test/test_optimization/test_programs.py:129
Method
test_mixed_integer_quadratic_programming_solver_gurobi
(self)
pympc/test/test_optimization/test_solvers.py:352
Method
test_normalize
(self)
pympc/test/test_geometry/test_polyhedron.py:231
Method
test_nullspace_basis
(self)
pympc/test/test_geometry/test_utils.py:12
Method
test_orthogonal_projection
(self)
pympc/test/test_geometry/test_polyhedron.py:808
Method
test_plane_through_points
(self)
pympc/test/test_geometry/test_utils.py:49
Method
test_quadratic_program_gurobi
(self)
pympc/test/test_optimization/test_programs.py:124
Method
test_quadratic_programming_solver_gurobi
(self)
pympc/test/test_optimization/test_solvers.py:347
Method
test_remove_equalities
(self)
pympc/test/test_geometry/test_polyhedron.py:257
Method
test_remove_redundant_inequalities
(self)
pympc/test/test_geometry/test_polyhedron.py:301
Method
test_same_rows
(self)
pympc/test/test_geometry/test_utils.py:67
Method
test_same_vectors
(self)
pympc/test/test_geometry/test_utils.py:93
Method
test_solve
(self)
pympc/test/test_optimization/test_parametric_programs.py:15
Method
test_solve_dare_and_simulate_closed_loop
(self)
pympc/test/test_dynamics/test_discrete_time_systems.py:57
Method
test_vertices
(self)
pympc/test/test_geometry/test_polyhedron.py:695
Method
u
Numeric value of the primal optimizer at the point x. Arguments ---------- x : numpy.ndarray Point where
pympc/optimization/parametric_programs.py:465
Method
vertices
Returns the set of vertices of the polyhdron. It assumes the polyhedron to be bounded (i.e. to be a polytope) and full dimensional (e
pympc/geometry/polyhedron.py:771
← previous
101–198 of 198, ranked by callers