メインコンテンツへスキップ

Help with Incorporating Battery Charging Behaviour into Model Constraints

ユーザーの入力を待っています。

コメント

1件のコメント

  • Jaromił Najman
    • Gurobi Staff

    You have to define this part

    r = holderSoC +incrementSoC*chargePeriod     #how to *schedule[i] ?
    #CONDITION: if schedule[i] = 1, perform the following chargePeriod+1 step
    chargePeriod = chargePeriod+1

    through a mathematical formulation, i.e., every relationship has to be defined by an (in)equality constraint. However, it is not really clear to me what you are trying to express.

    Do you want to construct a relationship similar to

    r = holderSoC +incrementSoC*schedule[i]

    ? I don't think that you need the chargePeriod variable because the \(\texttt{i}\) index of your schedule variable already gives you the chargePeriod value. If you really need conditional statements, then you can formulate them as discussed in the Knowledge Base article How do I model conditional statements in Gurobi? or directly through indicator constraints.

    I would recommend having a look at some mathematical modeling tutorials. Maybe our webinar on Advanced Modelling is helpful here.

    0

サインインしてコメントを残してください。