Musa Dursun

  • Gurobi-versary
  • First Question
  • Conversationalist
  • Total activity 12
  • Last activity
  • Member since
  • Following 0 users
  • Followed by 0 users
  • Votes 0
  • Subscriptions 3

Activity overview

Latest activity by Musa Dursun
  • Musa Dursun created a post,

    Adding Constraint

    Answered

    How can I write code for this constraint ? Xtk >= Xpk, all t and k, p is from t to last range. I mean; for t in range 3 X11 >= X12 X11 >= X22 X11 >= X32 X21 >= X22 X21 >= X32 X31 >= X32

  • Musa Dursun commented,

    Hi Jaromil, My aim is to get best total time. Only two constraints are added to try model behaviour. One is for job (kart) assignment. One is for the total number of available worker.   1st constra...

  • Musa Dursun commented,

    Thank you for information. Is it possible to add new part to objective like this; Sum t for only values Xkt=1. I mean T (time line) is from 1 to 11, but all jobs are completed within 7 time periods...

  • Musa Dursun commented,

    Thank you for your help. This subjec is very beneficial for me. Now, I need job priority constraint. I tries k1 < k2 basically. It means k2 must be performed before application of k1. How can I wri...

  • Musa Dursun commented,

    Hi Jaromil, Ypyn refers jobs must not be applied at the same time period t. Yes, constraint you wrote is correct. Job1 and job 5 must not be applied at the same t. I also would like to have a const...

  • Musa Dursun created a post,

    Adding Constraint

    Answered

    Hello, I would like to add new constraint to my model but no success. The constraint Xlt + Xkt = 0, YPYN in code," means that there is a sublist for each book and these books cannot be placed at th...

  • Musa Dursun commented,

    Thank you. It worked well.

  • Musa Dursun commented,

    The code is as follow; import gurobipy as gpfrom gurobipy import GRBT = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]K = ["k1","k2","k3","k4","k5","k6","k7","k8","k9"] z = gp.Model("MP")x = z.addVars (T, K, ...

  • Musa Dursun created a post,

    Objective code for summation

    Answered

    I am beginner for gurobi and trying to use via python. I couldn't write a code for this summation. Would you please help me? ∑∑ t * Xkt. t and k are indices. Xkt is a binary decision variable.t i...