Nicolas Campbell
- 合計アクティビティ 10
- 前回のアクティビティ
- メンバー登録日
- フォロー 0ユーザー
- フォロワー 0ユーザー
- 投票 2
- サブスクリプション 2
アクティビティの概要
Nicolas Campbellさんの最近のアクティビティ-
Nicolas Campbellさんがコメントを作成しました:
Hi Jaromil, The minimal working example won't work without excel files but I will include code for you to see: from gurobipy import *import numpy as npimport pandas as pdimport numpy as npzones = [...
-
Nicolas Campbellさんが投稿を作成しました:
if statement in constraint
回答済みHi, I am trying to have a conditional constraint for when x [t-1] = 0. Here is some current code: model.addConstrs(sum(x[time,zone] for zone in zones) >= 0.95*sum(x[times[time_index-1],zone] for zo...
-
Nicolas Campbellさんがコメントを作成しました:
Thank you so much. This worked perfectly and you explanation was great. I also want to say that from what I have seen on other posts you guys are great help in this community. I am sure everyone ap...
-
Nicolas Campbellさんがコメントを作成しました:
Small addition: I did test out adding another constraint to x in the code model.addConstrs(x[time,zone] <=ub[zone] for time in times for zone in zones) This successfully constrains 'x', however, I...
-
Nicolas Campbellさんがコメントを作成しました:
Hi, Sorry it has taken a while to respond. I was away and it would take me time to make a minimal working example. I have made one now and I hope you can solve my issues. from gurobipy import *impo...
-
Nicolas Campbellさんが投稿を作成しました:
Ignored upper bound set on variable
回答済みHi, I have a set of variables that are semi-continuous with an upper and lower bound placed. x = model.addVars(times,zones, name = "x", ub=ub, lb = lb, vtype= 'S') ub and lb are defined in a big li...