ANH TU VU

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

Activity overview

Latest activity by ANH TU VU
  • ANH TU VU commented,

    for _ in range(5): state_value_table_new = state_value_table_gu.copy() invest_policy_table_gu = invest_policy_table.copy() exit_policy_table_gu = exit_policy_table.copy() entry_policy_table_gu = e...

  • ANH TU VU commented,

    Here are all my codes. It's scarcely long because I haven't known how to optimize code with Gurobi's variables. There are two problems I need your support 1) As you can see, the variable CV_value_v...

  • ANH TU VU commented,

    yes, I do. Here is an example. U-variables[0] = {0: <gurobi.LinExpr: 0.0 state_value_variable[1] + 0.0 state_value_variable[33] + 0.0 state_value_variable[153] + 0.26963645536163366 state_value_var...

  • ANH TU VU created a post,

    automatically get values of auxiliary variables

    Awaiting user input

    I have main variables (V) and auxiliary variables (U) with the below formula example U1 = 0.5 V1 + 0.7 V2 + 0.1 V3 After Gurobi solves the optimization problems, I get an array of V, like V1=5, V2=...

  • ANH TU VU commented,

    Hi Maliheh, thanks for your support. I follow the code you provided, but it doesn't seem to work now. Please see the code below and help me to go over the problem. Thank you so much for your time a...

  • ANH TU VU created a post,

    stack MLinExpr and add constraints

    Answered

    m = gp.Model('LP_model') expected_cost = m.addMVar(70, lb=0, ub=float('inf'), vtype='C', name='expected_cost') m.setObjective(expected_cost.sum(), GRB.MINIMIZE)   # expected_cost.shape = (70,),...