Xiangfeng Zhu

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

Activity overview

Latest activity by Xiangfeng Zhu
  • Xiangfeng Zhu commented,

    Hi Eli, I think you're right. I think didn't understand how Model.addGenConstrIndicator()  works before. Thanks so much for your help. Xiangfeng

  • Xiangfeng Zhu commented,

    Hi Eli, I really appreciate your help and I'm trying to fix the problem. However, it seems like it didn't work. (the slowest is smaller than the data transmission time) status = m.addVars([i for i ...

  • Xiangfeng Zhu commented,

    >Maybe a client's processing time bw should only be counted if the client is assigned at least one sample? Yes! I think that might be the problem. I'll check this. Thanks so much!

  • Xiangfeng Zhu commented,

    Hi Eli, Sorry to bother you, but any ideas?  Thanks, Xiangfeng

  • Xiangfeng Zhu commented,

    Hi Eli,   Thanks for your prompt reply! For example, if there are two classes of interest and there are 5 clients. num_of_class = 2num_of_clients = 5preference = [50, 50] # We want 50 samples of cl...

  • Xiangfeng Zhu created a post,

    Constraints doesn't work

    Answered

    Hi, I'm trying to translate an LP problem into Gurobi using python but my program is not working. I spent several days to debug it but it's still not working. I appreciate any help!  Specifically, ...

  • Xiangfeng Zhu commented,

    It worked! Thanks so much! 

  • Xiangfeng Zhu commented,

      Thanks for your prompt reply! They are GRB.INTEGER and I set the lower bound to zero.    

  • Xiangfeng Zhu created a post,

    Non-Zero test for summation of variables

    Answered

    Hi all, I have a list of variable and I want to add a constraint to limit the number of non-zero variables. How should I do this? I try to compare it to something like IntFeasTol but I think two-si...