How do we define prob=optimproblem for multiple energy storage systems

In the below example,
one battery is considered in this example and optimproblem has been defined for that.What if there are one more battery and is it possible to define two optimproblem like
prob=optimproblem;
prob1=optimproblem;
If so is this the correct format ?Please advice

1 件のコメント

Danny
Danny 2021 年 10 月 14 日
Hi, did you manage to solve the problem with multiple storage systems?

サインインしてコメントする。

 採用された回答

Alan Weiss
Alan Weiss 2021 年 7 月 19 日

1 投票

Most likely, you should use a single problem, but have multiple variables that represent the batteries' charge levels or whatever you want. I say this because you probably do not have independent batteries, but they interact in some way. In that case, use just one problem with multiple battery variables.
Alan Weiss
MATLAB mathematical toolbox documentation

3 件のコメント

NN
NN 2021 年 7 月 20 日
i have independent batteries , so i tried to give seperate sets of optimproblem for them, then i got error
NN
NN 2021 年 7 月 20 日
When i used one problem with multiple variables, i got this error.
An error occurred while running the simulation and the simulation was terminated
Caused by:
Too many output arguments
How can i solve this , pleas eadvice.
Torsten
Torsten 2021 年 7 月 20 日
First we must see your code. Then someone might be able to advice how to overcome the error.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

製品

リリース

R2019a

質問済み:

NN
2021 年 7 月 19 日

コメント済み:

2021 年 10 月 14 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by