I'm new to IBM CP optimizer.
I want to make charging / discharging scheduling based on cost (value will change on time) and my objective function is
$$\sum_{t=1}^{24}\sum_{j=1}^5x(1)^{(t,j)}x(2)^{(t,j)}\cdot\text{Price}_1^{(t)}-x(3)^{(t,j)}x(4)^{(t,j)}\cdot\text{Price}_2^{(t)}$$ where
- $t$, $j$ means time (1 day) and machine number.
- $x(1)$ and $x(3)$ means signal about charging or discharging (perhaps I can remove $x(3)$ and re-write $(1-x(1)$).
- $x(2)$ and $x(4)$ means Power.
- I have a few constraints about the machine's maximum and minimum battery capacity.
Then, how can I make codes of the objective function and interval? it is possible to make scheduling? I tried several days with the CP manual and IBM website, but it's still not working well.
(I will not use any API such as python, C++. I want to make in CP. )