Laynufar Silsilia
- Total activity 14
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 2
- Subscriptions 4
Activity overview
Latest activity by Laynufar Silsilia-
Laynufar Silsilia commented,
okey, but thank you for your response.
-
Laynufar Silsilia commented,
Halo, Thank you in advance for your response, is it like this? ###A = (sum(sum(x[n,d,1]) ** 2) / (17) for n in range(5,N) for d in range (D))B = (sum(sum(x[n,d,1]) / (17) ** 2) for n in range(5,N)...
-
Laynufar Silsilia commented,
halo! Now, i have the same problem. What is causing the error? thanks! File d:\pemograman\iis.py:39 m.setObjective(((sum(sum(x[n,d,1]) ** 2) / (17) for n in range(5,N) for d in range (D)) - (s...
-
Laynufar Silsilia created a post,
How to write sum starting from 5
AnsweredI have data on the number of nurses 21, but the used in the equation starts from nurse 5, with n = 1,2,3,...,N and the sequence 1,2,3,4 is the senior nurse (T). If i=N-T then written in programming...
-
Laynufar Silsilia created a post,
ValueError: Expected 1D or 2D array, got 3D array instead
Awaiting user inputHalo, It's the first time I encounter this problem. I saw in other topic that is not scarce, but in fact i don't understand where to reshape the data in my code. File ~\anaconda3\envs\python_38_e...
-
Laynufar Silsilia created a post,
KeyError: (0, 0)
Awaiting user inputHai, I get the following error: KeyError: (0, 0) I think this is because of these codes; shift [n,d] = x[n,d].X # Solutionshift = np.zeros((N,S)) for n in range (N): for s in range (S): ...
-
Laynufar Silsilia commented,
If I move the code above, the results appear TypeError: unsupported operand type(s) for -: 'bool' and 'NoneType'
-
Laynufar Silsilia created a post,
TypeError: unsupported operand type(s) for -: 'int' and 'NoneType'
Awaiting user inputHi, I get the following error; TypeError: unsupported operand type(s) for -: 'int' and 'NoneType' I think this is because of these codes; m.addConstr(sum(p[n,s] <= 21 for n in range (N) for s in ra...