Skip to main content

Help with Incorporating Battery Charging Behaviour into Model Constraints

Awaiting user input

Comments

2 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff
    This post is more than two years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum, or try Gurobot, our chatbot interface offering instant, expert-level support.
  • 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

Post is closed for comments.