Laynufar Silsilia

  • Gurobi-versary
  • First Question
  • First Comment
  • Total activity 14
  • Last activity
  • Member since
  • Following 0 users
  • Followed by 0 users
  • Votes 2
  • Subscriptions 4

Posts

Recent activity by Laynufar Silsilia Recent activity Votes
  • How to write sum starting from 5

    Answered

    I 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...

  • ValueError: Expected 1D or 2D array, got 3D array instead

    Awaiting user input

    Halo, 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...

  • KeyError: (0, 0)

    Awaiting user input

    Hai, 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):     ...

  • TypeError: unsupported operand type(s) for -: 'int' and 'NoneType'

    Awaiting user input

    Hi, 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...