MCPcopy Create free account

hub / github.com/TobiaMarcucci/pympc / functions

Functions198 in github.com/TobiaMarcucci/pympc

↓ 1 callersMethodsimulate
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 callersMethodsimulate_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 callersMethodstore_explicit_solution
Solves the mpqp (condensed optimal control problem) explicitly. Returns ---------- instance of ExplicitSolution
pympc/control/controllers.py:126
↓ 1 callersMethodtest_linear_program
(self, solver='pnnls')
pympc/test/test_optimization/test_programs.py:14
↓ 1 callersMethodtest_linear_programming_solver
(self, linear_program=lp_pnnls)
pympc/test/test_optimization/test_solvers.py:12
↓ 1 callersMethodtest_quadratic_program
(self, solver='pnnls')
pympc/test/test_optimization/test_programs.py:71
↓ 1 callersMethodtest_quadratic_programming_solver
(self, quadratic_program=qp_pnnls)
pympc/test/test_optimization/test_solvers.py:263
MethodV
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
Methodb
Right hand side of the inequalities describing the critical region. Returns ---------- numpy.ndarray Rig
pympc/optimization/parametric_programs.py:415
Methodbounded
Checks if the polyhedron is bounded (returns True or False). Math ---------- Consider the non-empty polyhedron P :=
pympc/geometry/polyhedron.py:529
Methodcenter
Returns the Chebyshev center of the polyhedron (see self._chebyshev()). Returns ---------- center : numpy.ndarray
pympc/geometry/polyhedron.py:708
Methodcontrollable
(self)
pympc/dynamics/discrete_time_systems.py:187
Methodempty
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
Methodfrom_continuous
Instantiates a discrete-time affine system starting from its continuous time representation. Arguments ---------- A
pympc/dynamics/discrete_time_systems.py:362
Methodfrom_symbolic
Instatiates a LinearSystem starting from the symbolic value of the next state. Arguments ---------- x : sympy matrix
pympc/dynamics/discrete_time_systems.py:234
Methodfrom_symbolic
Instatiates a AffineSystem starting from the symbolic value of the next state. Arguments ---------- x : sympy matrix
pympc/dynamics/discrete_time_systems.py:394
Methodfrom_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
Functionlinear_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
Functionlinear_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
Functionlinear_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
Functionmixed_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
Functionmixed_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
Methodp
Numeric value of the dual optimizer at the point x. Arguments ---------- x : numpy.ndarray Point where w
pympc/optimization/parametric_programs.py:488
Functionplot_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
Methodplot_optimal_value_function
Plots the level sets of the optimal value function V*(x). Arguments ---------- resolution : float Size o
pympc/control/controllers.py:212
Functionplot_output_trajectory
Plots the output trajectory and its bounds as functions of time. Arguments ---------- C : numpy.ndarray Tranformation matrix
pympc/plot.py:158
Methodplot_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
Functionplot_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
Functionplot_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
Functionpwa_from_RigidBodyPlant
Arguments ---------- plant : RigidBodyPlant RigidBodyPlant of the robot. linearization_points : list of numpy.ndarray
examples/pwa_from_urdf/utils.py:159
Functionquadratic_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
Functionquadratic_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
Functionquadratic_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
Methodradius
Returns the Chebyshev radius of the polyhedron (see self._chebyshev()). Returns ---------- radius : float
pympc/geometry/polyhedron.py:688
Methodsolve
Solves the mpMIQP for the given value of the parameter x. Arguments ---------- x : numpy.ndarry Numeric
pympc/optimization/parametric_programs.py:568
Methodtest_add_functions
(self)
pympc/test/test_geometry/test_polyhedron.py:41
Methodtest_bounded
(self)
pympc/test/test_geometry/test_polyhedron.py:395
Methodtest_cartesian_product
(self)
pympc/test/test_geometry/test_polyhedron.py:551
Methodtest_chebyshev
(self)
pympc/test/test_geometry/test_polyhedron.py:581
Methodtest_check_affine_system
(self)
pympc/test/test_dynamics/test_utils.py:10
Methodtest_condense_and_simulate
(self)
pympc/test/test_dynamics/test_discrete_time_systems.py:22
Methodtest_condense_and_simulate
(self)
pympc/test/test_dynamics/test_discrete_time_systems.py:195
Methodtest_condense_and_simulate_and_get_mode
(self)
pympc/test/test_dynamics/test_discrete_time_systems.py:325
Methodtest_contains
(self)
pympc/test/test_geometry/test_polyhedron.py:449
Methodtest_controllable
(self)
pympc/test/test_dynamics/test_discrete_time_systems.py:43
Methodtest_convex_hull_method
(self)
pympc/test/test_geometry/test_polyhedron.py:846
Methodtest_delete_attributes
(self)
pympc/test/test_geometry/test_polyhedron.py:756
Methodtest_empty
(self)
pympc/test/test_geometry/test_polyhedron.py:376
Methodtest_explicit_euler_and_zero_order_hold
(self)
pympc/test/test_dynamics/test_discretization_methods.py:10
Methodtest_explicit_solution
(self)
pympc/test/test_control/test_controllers.py:103
Methodtest_feedforward_feedback_and_get_mpqp
(self)
pympc/test/test_control/test_controllers.py:167
Methodtest_from_continuous_and_symbolic
(self)
pympc/test/test_dynamics/test_discrete_time_systems.py:122
Methodtest_from_continuous_and_symbolic
(self)
pympc/test/test_dynamics/test_discrete_time_systems.py:217
Methodtest_from_convex_hull
(self)
pympc/test/test_geometry/test_polyhedron.py:634
Methodtest_from_functions
(self)
pympc/test/test_geometry/test_polyhedron.py:134
Methodtest_implicit_solution
(self)
pympc/test/test_control/test_controllers.py:13
Methodtest_initialization
(self)
pympc/test/test_geometry/test_polyhedron.py:15
Methodtest_intersection
(self)
pympc/test/test_geometry/test_polyhedron.py:523
Methodtest_intialization
(self)
pympc/test/test_dynamics/test_discrete_time_systems.py:12
Methodtest_intialization
(self)
pympc/test/test_dynamics/test_discrete_time_systems.py:180
Methodtest_intialization
(self)
pympc/test/test_dynamics/test_discrete_time_systems.py:279
Methodtest_is_included_in
(self)
pympc/test/test_geometry/test_polyhedron.py:472
Methodtest_is_well_posed
(self)
pympc/test/test_dynamics/test_discrete_time_systems.py:392
Methodtest_linear_program_gurobi
(self)
pympc/test/test_optimization/test_programs.py:66
Methodtest_linear_programming_solver_gurobi
(self)
pympc/test/test_optimization/test_solvers.py:258
Methodtest_linearly_independent_rows
(self)
pympc/test/test_geometry/test_utils.py:34
Methodtest_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
Methodtest_mcais
(self)
pympc/test/test_dynamics/test_discrete_time_systems.py:420
Methodtest_mixed_integer_quadratic_program_gurobi
(self)
pympc/test/test_optimization/test_programs.py:129
Methodtest_mixed_integer_quadratic_programming_solver_gurobi
(self)
pympc/test/test_optimization/test_solvers.py:352
Methodtest_normalize
(self)
pympc/test/test_geometry/test_polyhedron.py:231
Methodtest_nullspace_basis
(self)
pympc/test/test_geometry/test_utils.py:12
Methodtest_orthogonal_projection
(self)
pympc/test/test_geometry/test_polyhedron.py:808
Methodtest_plane_through_points
(self)
pympc/test/test_geometry/test_utils.py:49
Methodtest_quadratic_program_gurobi
(self)
pympc/test/test_optimization/test_programs.py:124
Methodtest_quadratic_programming_solver_gurobi
(self)
pympc/test/test_optimization/test_solvers.py:347
Methodtest_remove_equalities
(self)
pympc/test/test_geometry/test_polyhedron.py:257
Methodtest_remove_redundant_inequalities
(self)
pympc/test/test_geometry/test_polyhedron.py:301
Methodtest_same_rows
(self)
pympc/test/test_geometry/test_utils.py:67
Methodtest_same_vectors
(self)
pympc/test/test_geometry/test_utils.py:93
Methodtest_solve
(self)
pympc/test/test_optimization/test_parametric_programs.py:15
Methodtest_solve_dare_and_simulate_closed_loop
(self)
pympc/test/test_dynamics/test_discrete_time_systems.py:57
Methodtest_vertices
(self)
pympc/test/test_geometry/test_polyhedron.py:695
Methodu
Numeric value of the primal optimizer at the point x. Arguments ---------- x : numpy.ndarray Point where
pympc/optimization/parametric_programs.py:465
Methodvertices
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
← previous101–198 of 198, ranked by callers