ご質問のコードを何度実行しても再現できませんでした(全て同じ値が出力されました)。
(ある特定のa_shockが原因か、あるいは、モジュールのバージョンが原因かわかりません)
少なくともprint(opts(0).x)とprint(opts(1).x)が異なることはありませんでした。
本当にご質問のような結果が得られたのですか?
text
1[41.14691214 24.99999917]
2[41.14691214 24.99999917]
3[array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917]), array([41.14691214, 24.99999917])]
4インデックス1: [41.14691214 24.99999917]
5インデックス2: [41.14691214 24.99999917]
この結果を再現したa_shockの値
text
1array([[86.94631736, 0. ],
2 [88.24059994, 0. ],
3 [63.88071978, 0. ],
4 [97.57583615, 0. ],
5 [59.1515068 , 0. ],
6 [76.57500374, 0. ],
7 [62.57463254, 0. ],
8 [71.99813083, 0. ],
9 [79.11855668, 0. ],
10 [84.37097279, 0. ],
11 [56.33228482, 0. ],
12 [76.90794869, 0. ],
13 [88.78803925, 0. ],
14 [72.86546644, 0. ],
15 [64.55730109, 0. ],
16 [87.66662926, 0. ],
17 [68.26486145, 0. ],
18 [89.0884346 , 0. ],
19 [51.9560971 , 0. ],
20 [91.22909041, 0. ],
21 [75.41843306, 0. ],
22 [91.10976738, 0. ],
23 [73.51168527, 0. ],
24 [89.40328009, 0. ],
25 [53.81101371, 0. ],
26 [61.98393568, 0. ],
27 [54.71236022, 0. ],
28 [67.17937382, 0. ],
29 [98.55481394, 0. ],
30 [77.88477456, 0. ],
31 [73.64123646, 0. ],
32 [94.04620222, 0. ],
33 [58.52606914, 0. ],
34 [81.7636329 , 0. ],
35 [69.39601077, 0. ],
36 [72.49074165, 0. ],
37 [77.33081577, 0. ],
38 [77.02725975, 0. ],
39 [59.50171833, 0. ],
40 [95.2699818 , 0. ],
41 [97.16985503, 0. ],
42 [83.2670286 , 0. ],
43 [52.5908398 , 0. ],
44 [56.48330684, 0. ],
45 [87.88075307, 0. ],
46 [63.01896622, 0. ],
47 [89.89313833, 0. ],
48 [51.57691706, 0. ],
49 [81.922707 , 0. ],
50 [94.3653957 , 0. ],
51 [85.20211311, 0. ],
52 [78.60473673, 0. ],
53 [60.04666014, 0. ],
54 [54.09208572, 0. ],
55 [72.95415372, 0. ],
56 [75.09743132, 0. ],
57 [60.1501105 , 0. ],
58 [68.80185706, 0. ],
59 [83.84797023, 0. ],
60 [98.53367147, 0. ],
61 [65.52482817, 0. ],
62 [50.90285463, 0. ],
63 [82.66954479, 0. ],
64 [88.0250928 , 0. ],
65 [60.12744854, 0. ],
66 [95.11834392, 0. ],
67 [98.78607007, 0. ],
68 [98.39624051, 0. ],
69 [94.87834786, 0. ],
70 [76.22672687, 0. ],
71 [60.67453039, 0. ],
72 [99.30529285, 0. ],
73 [67.59547283, 0. ],
74 [70.21665278, 0. ],
75 [58.52796051, 0. ],
76 [82.91705426, 0. ],
77 [99.79190275, 0. ],
78 [94.23850625, 0. ],
79 [96.80085235, 0. ],
80 [88.94066684, 0. ],
81 [88.09091175, 0. ],
82 [52.63167066, 0. ],
83 [82.86003197, 0. ],
84 [91.62778404, 0. ],
85 [98.19051657, 0. ],
86 [69.39058311, 0. ],
87 [97.77421829, 0. ],
88 [83.57513457, 0. ],
89 [54.43381656, 0. ],
90 [54.03169961, 0. ],
91 [54.59933567, 0. ],
92 [78.88361243, 0. ],
93 [82.9944889 , 0. ],
94 [55.94026688, 0. ],
95 [56.15304813, 0. ],
96 [63.84645291, 0. ],
97 [56.79068478, 0. ],
98 [97.46527693, 0. ],
99 [86.68915797, 0. ],
100 [64.58626962, 0. ]])
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。