Pyomo Constraint : Conditional constraint using decision variables for comparison

后端 未结 0 1689
时光取名叫无心
时光取名叫无心 2021-01-19 11:50

def Departure_Time(model,I): if I==0: return (model.Dept_Time_P[I] == Tar_Dept_Date) elif value(model.A[I] - floor(model.A[I]) + model.Cargo1[I]) < value(model.Work_end_t

相关标签:
回答
  • 消灭零回复
提交回复
热议问题