質問編集履歴

4

エラー

2020/08/08 08:53

投稿

neiber
neiber

スコア1

test CHANGED
File without changes
test CHANGED
@@ -10,6 +10,42 @@
10
10
 
11
11
  ```
12
12
 
13
+ Traceback (most recent call last):
14
+
15
+ File "kari.py", line 36, in <module>
16
+
17
+ ShiftScheduling += lpSum(x[m, d, a] for m in Member) == n, "Constraint_{:}_{:}".format(d,a)
18
+
19
+ File "/usr/local/lib/python3.7/site-packages/pulp/pulp.py", line 888, in __eq__
20
+
21
+ return LpConstraint(self - other, const.LpConstraintEQ)
22
+
23
+ File "/usr/local/lib/python3.7/site-packages/pulp/pulp.py", line 809, in __sub__
24
+
25
+ return self.copy().subInPlace(other)
26
+
27
+ File "/usr/local/lib/python3.7/site-packages/pulp/pulp.py", line 784, in subInPlace
28
+
29
+ self.subInPlace(e)
30
+
31
+ File "/usr/local/lib/python3.7/site-packages/pulp/pulp.py", line 784, in subInPlace
32
+
33
+ self.subInPlace(e)
34
+
35
+ File "/usr/local/lib/python3.7/site-packages/pulp/pulp.py", line 784, in subInPlace
36
+
37
+ self.subInPlace(e)
38
+
39
+ [Previous line repeated 985 more times]
40
+
41
+ File "/usr/local/lib/python3.7/site-packages/pulp/pulp.py", line 782, in subInPlace
42
+
43
+ or isinstance(other, Iterable)):
44
+
45
+ File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/abc.py", line 139, in __instancecheck__
46
+
47
+ return _abc_instancecheck(cls, instance)
48
+
13
49
  RecursionError: maximum recursion depth exceeded in comparison
14
50
 
15
51
  ```

3

markdown化

2020/08/08 08:53

投稿

neiber
neiber

スコア1

test CHANGED
File without changes
test CHANGED
@@ -20,7 +20,7 @@
20
20
 
21
21
 
22
22
 
23
- ```ここに言語名を入力
23
+ ```Python
24
24
 
25
25
  for d in Day:
26
26
 
@@ -54,7 +54,7 @@
54
54
 
55
55
 
56
56
 
57
-
57
+ ```Python
58
58
 
59
59
  for d in Day:
60
60
 
@@ -66,11 +66,17 @@
66
66
 
67
67
 
68
68
 
69
+ ```
70
+
69
71
  ### 補足情報(FW/ツールのバージョンなど)
70
72
 
71
73
 
72
74
 
73
75
  途中ですがコードを置きます
76
+
77
+
78
+
79
+ ```Python
74
80
 
75
81
  import numpy as np, pandas as pd
76
82
 
@@ -189,3 +195,5 @@
189
195
 
190
196
 
191
197
  print(pd.DataFrame(n,index = ['出勤','休み']))
198
+
199
+ ```

2

2020/08/08 08:50

投稿

neiber
neiber

スコア1

test CHANGED
File without changes
test CHANGED
@@ -7,8 +7,6 @@
7
7
 
8
8
 
9
9
  ### 発生している問題・エラーメッセージ
10
-
11
-
12
10
 
13
11
  ```
14
12
 

1

2020/08/08 06:17

投稿

neiber
neiber

スコア1

test CHANGED
File without changes
test CHANGED
@@ -1,6 +1,6 @@
1
1
  ### 前提・実現したいこと
2
2
 
3
- pythonでシフト作成システムを作ろうと思っています。
3
+ pythonでシフト作成システムを作ろうと思っています。
4
4
 
5
5
 
6
6
 
@@ -35,6 +35,14 @@
35
35
  for a in Action:
36
36
 
37
37
  ShiftScheduling += lpSum(x[m, d, a] for m in Member) == n, "Constraint_{:}_{:}".format(d,a)
38
+
39
+
40
+
41
+
42
+
43
+ ShiftScheduling += lpSum(x[m, d, a] for m in Member) == n, "Constraint_{:}_{:}".format(d,a)
44
+
45
+ の部分でエラーが吐かれてます
38
46
 
39
47
  ```
40
48