MCPcopy Create free account

hub / github.com/StanfordASL/neural-network-lyapunov / functions

Functions1,470 in github.com/StanfordASL/neural-network-lyapunov

Method__init__
(self, left, right, height)
neural_network_lyapunov/spring_loaded_inverted_pendulum.py:12
Method__init__
@param mass The mass of the system. @param l0 The springy leg has rest length of l0 @param k The spring constant @par
neural_network_lyapunov/spring_loaded_inverted_pendulum.py:23
Method__init__
Generates state transitions using pybullet. The transitions are returned both in image and state space @param load_world_cb a
neural_network_lyapunov/pybullet_data_generation.py:108
Method__init__
@param system A dynamical system.
neural_network_lyapunov/lyapunov.py:544
Method__init__
(self, slack, binary, x_next_lb_IA=None, x
neural_network_lyapunov/relu_system.py:11
Method__init__
@param dtype The torch datatype @param x_lo, x_up torch tensor that lower and upper bound the state @param dynamics_relu torc
neural_network_lyapunov/relu_system.py:104
Method__init__
@param dtype The torch datatype @param x_lo, x_up torch tensor that lower and upper bound the state @param dynamics_relu torc
neural_network_lyapunov/relu_system.py:193
Method__init__
@param dtype The torch datatype @param x_lo, x_up torch tensor that lower and upper bound the state @param dynamics_relu torc
neural_network_lyapunov/relu_system.py:301
Method__init__
@param x_lo The lower bound of x[n] and x[n+1]. This is only used in forming the mixed-integer linear constraints. @param x_u
neural_network_lyapunov/relu_system.py:517
Method__init__
@param x_lo The lower bound of state x = [q; v]. @param x_up The upper bound of state x = [q; v]. @param u_lo The lower bound
neural_network_lyapunov/relu_system.py:637
Method__init__
@param dynamics_relu A fully connected network that takes the input as a partial state and the control, and outputs the change of vel
neural_network_lyapunov/relu_system.py:798
Method__init__
This stores the (possibly relaxed) constraints on the controller that maps x to u.
neural_network_lyapunov/relu_system.py:997
Method__init__
Container for training options. Gets passed to DynamicsLearning constructor
neural_network_lyapunov/dynamics_learning.py:15
Method__init__
(self, train_dataloader, validation_dataloader, lyap, learning_opt)
neural_network_lyapunov/dynamics_learning.py:515
Method__init__
(self, train_dataloader, validation_dataloader, lyap,
neural_network_lyapunov/dynamics_learning.py:624
Method__init__
We want R to be a full column rank matrix, with size m x n and m >= n. The first n rows of R (The square matrix on top of R) is param
neural_network_lyapunov/r_options.py:38
Method__init__
(self, R: torch.Tensor)
neural_network_lyapunov/r_options.py:125
Method__init__
R = U * Σ * V, where U and V are given orthornomral matrices. Σ is a diagonal matrix such that Σ[i, i] = a(i) + v(i)²
neural_network_lyapunov/r_options.py:152
Method__init__
(self, R_size: tuple)
neural_network_lyapunov/r_options.py:223
Method__init__
(self, nn_input, slack, binary, u_lower_bound, u_upper_bound, relu_input_lo, relu_input_up, r
neural_network_lyapunov/feedback_system.py:27
Method__init__
@param forward_system. The forward dynamical system representing x[n+1] = f(x[n], u[n]). This system must implements functions like
neural_network_lyapunov/feedback_system.py:49
Method__init__
(self, mass, l0, k, g)
neural_network_lyapunov/slip_hybrid_linear_system.py:11
Method__init__
(self, dtype)
neural_network_lyapunov/examples/pendulum/pendulum.py:16
Method__init__
@param figsize The size of the fig @param subplot The argument in add_subplot(subplot) when adding the axis for pendulum.
neural_network_lyapunov/examples/pendulum/pendulum.py:96
Method__init__
(self, dtype, x_lo, x_up, u_lo, u_up, dynamics_relu)
neural_network_lyapunov/examples/pendulum/pendulum.py:137
Method__init__
Args: m_sphere: The mass of the sphere. m_ee: The mass of the end-effector. length: The length of the pole
neural_network_lyapunov/examples/pole/pole.py:21
Method__init__
Args: u_z_equilibrium: The equilibrium input force in the z direction (which is the total gravitational force of the pole
neural_network_lyapunov/examples/pole/pole_relu_system.py:21
Method__init__
(self, plant)
neural_network_lyapunov/examples/pole/simulation/pole_balancing_sim.py:44
Method__init__
(self, plant_robot)
neural_network_lyapunov/examples/pole/simulation/pole_balancing_sim.py:116
Method__init__
The parameter of this quadrotor is obtained from Attitude stabilization of a VTOL quadrotor aircraft by Abdelhamid Tayebi and
neural_network_lyapunov/examples/quadrotor3d/quadrotor.py:22
Method__init__
@param dynamics_relu Then network ϕ in the documentation above. @param hover_thrust The thrust command to maintain equilibrium.
neural_network_lyapunov/examples/quadrotor3d/quadrotor.py:207
Method__init__
@param u_lo The lower limit of the input. Note that the system input is the thrust, so this lower limit should be non-negative.
neural_network_lyapunov/examples/quadrotor3d/quadrotor.py:380
Method__init__
(self, forward_system, controller_network, u_lower_limit, u_upper_limit)
neural_network_lyapunov/examples/quadrotor3d/quadrotor_feedback_system.py:12
Method__init__
(self, forward_system, controller_network, u_lower_limit: np.ndarray, u_upper_limit: np.ndarr
neural_network_lyapunov/examples/car/unicycle_feedback_system.py:19
Method__init__
(self, input_dim, output_dim, nf, neighbors=5)
neural_network_lyapunov/examples/car/train_car_depth_dynamics.py:13
Method__init__
(self, plant, x_dim, u_lo: np.ndarray, u_up: np.ndarray, x_goal: np.ndarray)
neural_network_lyapunov/examples/car/rrt_star.py:12
Method__init__
(self, dtype)
neural_network_lyapunov/examples/car/acceleration_car.py:20
Method__init__
@param x_lo The lower bound of the state. @param x_up The upper bound of the state. @param u_lo The lower input limits.
neural_network_lyapunov/examples/car/acceleration_car.py:60
Method__init__
@param x_lo The lower bound of the state. @param x_up The upper bound of the state. @param u_lo The lower input limits.
neural_network_lyapunov/examples/car/unicycle.py:81
Method__init__
@param x_lo The lower bound of the state. @param x_up The upper bound of the state. @param u_lo The lower input limits.
neural_network_lyapunov/examples/car/unicycle.py:281
Method__init__
(self, ax, x_lim, y_lim)
neural_network_lyapunov/examples/car/unicycle.py:465
Method__init__
(self, obs_dim, act_dim, hidden_sizes, activation)
neural_network_lyapunov/examples/rl/td3.py:54
Method__init__
(self, observation_space, action_space, obs_equ, act_equ, hidden_sizes=(256, 256), activation
neural_network_lyapunov/examples/rl/td3.py:65
Method__init__
(self, obs_dim, act_dim, size)
neural_network_lyapunov/examples/rl/td3.py:89
Method__init__
(self)
neural_network_lyapunov/examples/rocket/rocket.py:66
Method__init__
(self, ax, x_lim, y_lim, length)
neural_network_lyapunov/examples/rocket/rocket.py:132
Method__init__
(self, dtype)
neural_network_lyapunov/examples/quadrotor2d/quadrotor_2d.py:13
Method__init__
(self, ax, x_lim, y_lim)
neural_network_lyapunov/examples/quadrotor2d/quadrotor_2d.py:110
Method__init__
(self, dtype, x_lo, x_up, u_lo, u_up, dynamics_relu, u_equilibrium: torch.Tensor)
neural_network_lyapunov/examples/quadrotor2d/quadrotor_2d.py:180
Method__init__
(self)
neural_network_lyapunov/examples/quadrotor2d/quadrotor2d_env.py:10
Method__setstate__
(self, state)
neural_network_lyapunov/line_search_gd.py:92
Method__setstate__
(self, state)
neural_network_lyapunov/line_search_adam.py:69
Method__str__
(self)
neural_network_lyapunov/r_options.py:103
Method__str__
(self)
neural_network_lyapunov/r_options.py:136
Method__str__
(self)
neural_network_lyapunov/r_options.py:205
Method__str__
(self)
neural_network_lyapunov/r_options.py:250
Function_add_constraint_by_layer
This function will be called inside output_constraint(). We group the network layers by a linear layer followed by a (leaky) ReLU layer,
neural_network_lyapunov/relu_to_optimization_utils.py:83
Function_add_constraint_to_program_by_layer
Add the constraint on output = relu(W * input + b). @param linear_layer @param binary_var_type The variable type for the binary variable.
neural_network_lyapunov/relu_to_optimization_utils.py:148
Function_add_forward_dynamics_mip_constraints
Adds the constraints to @p mip on the forward dynamics. Args: u_input_prog: Set to None don't plan to compute the ReLU input bounds
neural_network_lyapunov/relu_system.py:1007
Method_add_mode1
(system, A)
neural_network_lyapunov/test/test_lyapunov_roa.py:35
Method_add_mode2
(system, A)
neural_network_lyapunov/test/test_lyapunov_roa.py:42
Function_add_system_constraint
This function is intended for internal usage only (but I expose it as a public function for unit test). Add the constraint and variables
neural_network_lyapunov/dynamic_system.py:8
Function_max_y_given_linear_input
For the constraint c(w'*x_hat+b) <= y w'*x_hat+b <= y y <= x_coeffs * x_hat + beta_coeffs * beta + constants 0 <= beta <= 1 F
neural_network_lyapunov/mip_utils.py:187
Functionabsolute_value_as_mixed_integer_constraint
For a variable x in the interval [x_lo, x_up], we denote the absolute value |x| as s, and returns the mixed-integer constraints on x, s and t
neural_network_lyapunov/utils.py:160
Methodadd_dynamics_constraint
(self, mip, x_var,
neural_network_lyapunov/hybrid_linear_system.py:273
Methodadd_dynamics_constraint
(self, mip, x_var, x_next_var, slack_var_name, binary_var_name, binary_var_typ
neural_network_lyapunov/hybrid_linear_system.py:562
Methodadd_dynamics_constraint
(self, mip: gurobi_torch_mip.GurobiTorchMIP, x
neural_network_lyapunov/relu_system.py:161
Methodadd_dynamics_constraint
(self, mip: gurobi_torch_mip.GurobiTorchMIP, x
neural_network_lyapunov/relu_system.py:265
Methodadd_dynamics_constraint
(self, mip: gurobi_torch_mip.GurobiTorchMIP, x
neural_network_lyapunov/relu_system.py:376
Methodadd_dynamics_constraint
(self, mip, x_var,
neural_network_lyapunov/relu_system.py:607
Methodadd_dynamics_constraint
(self, mip, x_var,
neural_network_lyapunov/relu_system.py:768
Methodadd_dynamics_constraint
(self, mip: gurobi_torch_mip.GurobiTorchMIP, x
neural_network_lyapunov/relu_system.py:894
Methodadd_dynamics_constraint
Add the dynamic constraint pos[n+1] = pos[n] + (v[n] + v[n+1]) * dt / 2 [vel[n+1], rpy[n+1]] = [vel[n], rpy[n]] + ϕ(rpy[n], u
neural_network_lyapunov/examples/quadrotor3d/quadrotor.py:295
Methodadd_dynamics_constraint
Add the dynamic constraints a mixed-integer linear constraints. Refer to relu_system.py for the common API. The constraints a
neural_network_lyapunov/examples/car/acceleration_car.py:153
Methodadd_dynamics_constraint
Add the dynamic constraints a mixed-integer linear constraints. Refer to relu_system.py for the common API. The constraints a
neural_network_lyapunov/examples/car/unicycle.py:361
Functionadd_noise
Adds normal noise to a dataset @param noise_std_percent tensor with standard deviation of the noise, as percent of the mean of the magnit
neural_network_lyapunov/pybullet_data_generation.py:77
Functionadd_saturation_as_mixed_integer_constraint
For a saturation block y = upper_limit if x >= upper_limit y = x if lower_limit <= x <= upper_limit y = lower_limit if x <= lower_lim
neural_network_lyapunov/utils.py:444
Methodadd_train_loss
(self, losses)
neural_network_lyapunov/training_log.py:19
Methodadd_validation_loss
(self, losses)
neural_network_lyapunov/training_log.py:31
Methodadd_var_if_not_none
(coeff_matrix, var, coeff_matrices, var_list)
neural_network_lyapunov/gurobi_torch_mip.py:780
Methodall_to_device
moves all the relevant parameters to device (e.g. 'cpu', 'cuda')
neural_network_lyapunov/dynamics_learning.py:659
Methodapex
(t, x)
neural_network_lyapunov/test/test_spring_loaded_inverted_pendulum.py:350
Methodapex_map
Given the state of the SLIP at apex (ż = 0) during the flight phase, compute the state at the next apex. @param pos_x The ho
neural_network_lyapunov/spring_loaded_inverted_pendulum.py:144
Methodapex_map
(x0_theta)
neural_network_lyapunov/test/test_slip_hybrid_linear_system.py:31
Functionbinary_var_type_per_method
Determine the type for the binary variables based on the bound propagation method.
neural_network_lyapunov/mip_utils.py:454
Functionbox_boundary
Given a box region x_lo <= x <= x_up, return the mixed-integer constraint that x is on the boundary of this box region. For each x[i], we
neural_network_lyapunov/utils.py:1516
Functioncar_dynamics_training
(u, x, xn, nf)
neural_network_lyapunov/examples/car/train_car_depth_dynamics.py:294
Functioncb
(pb)
neural_network_lyapunov/worlds.py:13
Methodcb
(model, where)
neural_network_lyapunov/test/test_lyapunov.py:1932
Methodcheck
(x, u)
neural_network_lyapunov/test/test_relu_system.py:489
Methodcheck
(x, u)
neural_network_lyapunov/test/test_relu_system.py:600
Methodcheck
(x, u)
neural_network_lyapunov/test/test_relu_system.py:678
Methodcheck
(x, u)
neural_network_lyapunov/examples/rocket/test/test_rocket.py:70
Methodcheck
(x, u)
neural_network_lyapunov/examples/rocket/test/test_rocket.py:143
Methodcheck_and_to_numpy
(array, shape, dtype)
neural_network_lyapunov/hybrid_linear_system.py:179
Methodcheck_binary_bounds
(binary_lo, binary_up, lo_expected, up_expected)
neural_network_lyapunov/test/test_gurobi_torch_mip.py:1171
Methodcheck_bnd
(bnd1, bnd2, bnd_cat, num_bnd1, num_bnd2, same_var, upper_bound)
neural_network_lyapunov/test/test_gurobi_torch_mip.py:208
Methodcheck_cat
(mat1, mat2, mat_cat, mat1_size, mat2_size, same_var)
neural_network_lyapunov/test/test_gurobi_torch_mip.py:154
Methodcheck_dynamics
(x, u)
neural_network_lyapunov/examples/quadrotor2d/test/test_quadrotor_2d.py:26
Methodcheck_failure_step
For some apex state, the robot can not reach the next apex.
neural_network_lyapunov/test/test_spring_loaded_inverted_pendulum.py:101
← previousnext →601–700 of 1,470, ranked by callers