Question-and-Answer Resource for the Building Energy Modeling Community
Get s tarted with the Help page
Ask Your Question
4

GenOpt/EnergyPlus-Best Algorithm for peak load reduction (load-shift)

asked 2015-12-07 04:17:50 -0500

samks123 gravatar image

updated 2015-12-07 12:32:34 -0500

I am actually trying to develop an algorithm to shift the load demand during on-peak hours using GenOpt. I have had a quick trial testing the example file HookJeeves Algorithm, however I have some doubts in order to achieve my target.

I would like to start with something very simple such as:

$\min_{J} : C(t) dt$

Where,

$C(t) = [P_{HP} + P_{DHW} +...] * TimeOfUse (t) $

  • $C(t)$ : Cost function

  • $TimeOf Use(t)$ : on-peak hour tariff prices and off-peak hour tariff prices

  • $P_{HP}$: Power associated to a Heat Pump

  • $P_{DHW}$ : Power associated to the Domestic Hot Water

and,

  • 18C <= Temperature indoor<= 21C

  • 45C <= Temperature Domestic Hot Water<= 55C

Therefore, I am not too sure if HookJeeves is the best algorithm to use for this case, and if it is, how can I set the time of use parameter and constraint the temperatures.

edit retag flag offensive close merge delete

Comments

I'm pretty sure your question isn't actually about which algorithm to use (we don't care here...) but how to define your own cost function.

Julien Marrec gravatar image Julien Marrec  ( 2015-12-07 04:52:05 -0500 )edit

@Julien. Yes indeed. Thanks again

samks123 gravatar image samks123  ( 2015-12-07 05:43:37 -0500 )edit

Could you rephrase the question and the title. Like "GenOpt/EnergyPlus-How to write your own cost function" or something

Julien Marrec gravatar image Julien Marrec  ( 2015-12-07 06:14:53 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
3

answered 2015-12-07 06:20:19 -0500

updated 2015-12-07 06:20:50 -0500

You need to define your own cost function. I've personally done it in Python when needed, because that's my language of choice and because there exists some examples of how to do this.

Specifically, here are my recommendations:

  • Download and play with ExcalibBEM, which is a Graphical User Interface (GUI) for GenOpt developed by Hydro Quebec. It simplifies the setup quite a lot and comes with an example or two where a custom cost function is defined in Python. It's pretty easy to write your own function.

  • For the constraints, one simple way is to set the value of the cost function to infinite (= a very large value) when the constraints aren't satisfied (penalization).

edit flag offensive delete link more

Comments

1

Adding a penalty or Barrier function is the only way to handle constraints in GenOpt

GilbertLM gravatar image GilbertLM  ( 2015-12-07 07:52:24 -0500 )edit

@Julien, and @GilbertLM thanks very much.Will give a try to ExcalibBEM

samks123 gravatar image samks123  ( 2015-12-08 03:29:11 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

 

Question Tools

2 followers

Stats

Asked: 2015-12-07 04:17:50 -0500

Seen: 259 times

Last updated: Dec 07 '15