code stringlengths 3 6.57k |
|---|
logger.info('use api-endpoint: {}'.format(api_endpoint) |
logger.info('it could be override from ENV with the key {}'.format(ENV_API_ENDPOINT) |
logger.info('update api-endpoint from ENV: {}'.format(override) |
open("README.md", "r") |
f.read() |
setuptools.find_packages() |
path("users/self/profile/", UserSelfView.as_view() |
symbols('v, u_max') |
symbols('xb, yb') |
symbols('Dt, sigv, sigw, sigr') |
symbols('x, y, theta') |
symbols('w') |
cos(theta) |
sin(theta) |
sin(w) |
Matrix([[diff(x_dot, x) |
diff(x_dot, y) |
diff(x_dot, theta) |
diff(y_dot, x) |
diff(y_dot, y) |
diff(y_dot, theta) |
diff(theta_dot, x) |
diff(theta_dot, y) |
diff(theta_dot, theta) |
Matrix([[cos(theta) |
sin(theta) |
sqrt((x - xb) |
Matrix([[diff(h, x) |
diff(h, y) |
diff(h, theta) |
diag(sigv**2, sigw**2) |
diag(sigr**2) |
symbols('k') |
range(0, Dim[0]) |
range(i, Dim[1]) |
print(P_dot[i, j]) |
writeList.append(P_dot[i, j]) |
symbols('h_new, theta_new, v_new, gam_new') |
symbols('h_scale, theta_scale, v_scale, gam_scale') |
print(writeList) |
zip(writeList, scales) |
print(item) |
zip(states, states_new, scales) |
print(item) |
print(state) |
print(new) |
print(scale) |
print(new) |
item.subs(state, scale*new) |
print(item) |
scaledList.append(item) |
zip(states, states_new, scales) |
print(new) |
obj.subs(state, scale * new) |
open("eqns.txt", "w") |
print('* ' + str(item) |
simplify(item) |
print('# ' + str(item) |
my_file.write(str(item) |
print(" Wrote " + str(k) |
str(len(scaledList) |
open("eqnsUnscaled.txt", "w") |
my_file.write(str(item) |
print(" Wrote " + str(k) |
str(len(writeList) |
open("eqns.txt", "r") |
list(f) |
print(item) |
beluga.optim.Problem('carts0') |
problem.independent('t', 's') |
state('x_n', eqnsList[0] + '+ ep*u_max*cos(w) |
state('y_n', eqnsList[1], '1') |
state('theta_n', eqnsList[2], '1') |
state('p11_n', eqnsList[3], '1') |
state('p12_n', eqnsList[4], '1') |
state('p13_n', eqnsList[5], '1') |
state('p22_n', eqnsList[6], '1') |
state('p23_n', eqnsList[7], '1') |
state('p33_n', eqnsList[8], '1') |
problem.control('w', '1') |
Expression('p11', 'm^2/s^2') |
Expression('sin(w) |
Expression('p22_n', '1') |
Expression(str(obj) |
problem.constraints() |
initial('x_n-x_n_0', '1') |
initial('y_n-y_n_0', '1') |
initial('theta_n-theta_n_0', '1') |
initial('p11_n-p11_n_0', '1') |
initial('p12_n-p12_n_0', '1') |
initial('p13_n-p13_n_0', '1') |
initial('p22_n-p22_n_0', '1') |
initial('p23_n-p23_n_0', '1') |
initial('p33_n-p33_n_0', '1') |
terminal('x_n-x_n_f', '1') |
terminal('y_n-y_n_f', '1') |
problem.constant('Dt', 0.1, '1') |
problem.constant('sigv', 0.1, '1') |
problem.constant('sigw', 0.1, '1') |
problem.constant('sigr', 0.1, '1') |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.