Abhishek Solomon

Gurobi-versary
Curious
Conversationalist
  • Total activity 18
  • Last activity
  • Member since
  • Following 0 users
  • Followed by 0 users
  • Votes 0
  • Subscriptions 6

Activity overview

Latest activity by Abhishek Solomon
  • Abhishek Solomon commented,

    Thank you Jaromil. I do have constraints in the BIP model, i have just shown the objective function above. The constraints used are: for i in facilities:    for j in customers:        m.addConstr(S...

  • Abhishek Solomon created a post,

    Facility Location Problem - Standard BIP vs QUBO

    Awaiting user input

    Hello, I'm fairly new to the optimization world, and working on a research project that involves comparison of solving times for the standard uncapacitated facility location problem, using the foll...

  • Abhishek Solomon created a post,

    "string index out of range" error within quicksum

    Awaiting user input

    Hello, The below line of code gives me an "IndexError: string index out of range" error: for j in def_attributes:   m.addConstr(gp.quicksum(PlayerSelect[i]*current_fitness[i]*PlayerAttributes[i,j]...

  • Abhishek Solomon commented,

    Thank you Jaromil for your response, really appreciated! I'm working on a school project where a quadratic objective function is considered out of scope and hence needs to be linearized. Any help w...

  • Abhishek Solomon created a post,

    Linearizing a quadratic objective function

    Answered

    Hello, I'm fairly new to optimization and Gurobi. I have the following objective function to be mazimized: Xi and Xz are both decision variables. How do i linearize this? Thanks, Abhishek

  • Abhishek Solomon commented,

    Thanks a lot Dan. I notice that your suggestion also has 3 if statements. Just out of curiosity, will this be more efficient than how I've done it? Or is it just a way to avoid creating new variables?

  • Abhishek Solomon commented,

    Hello Dan, Firstly, thank you for the elaborate reply. I think i posted the definitions of a and b incorrectly, here's the correct snippet: for j in produce:    for t in periods:        if t-harves...

  • Abhishek Solomon created a post,

    Conditional constraints

    Answered

    Hello, I'm fairly new to code/Gurobi - I'm trying to write the following constraint, and it does not look optimal to me. Is there a way of writing the following without having to use a, b and c? fo...

  • Abhishek Solomon commented,

    Thank you Eli Towle ! Yes, yieldpersqft is fixed data. I will try this and come back if there's any other issue.

  • Abhishek Solomon created a post,

    Help with a conditional constraint!

    Answered

    Hello, I have the following code block: for i in locations:            for o in facilityoptions:               m.addConstr(gp.quicksum(ProductionQty[p,i,o]/yieldpersqft[p,o] for p in setproduce) <...