creating a function for cost optimization problem

16 views (last 30 days)
Hello everyone, I am a student and I am just starting to learn MATLAB. I have got a project where I have to optimize two Things using matlab. The Problem is that i have to find the right kind of fuel cell (power rating of fuel cell which can be used to meet our energy demand as a user) and a fuel cell-CHP system for a given multi-family house. I already have gathered the input data of the type of building, no. of rooms, no. of members and the energy consumption (electricity & heat) , with the help of which I have already made the load profile and with the help of load profile was able to figure out how much money a user roughly has to pay for the energy.
Now instead of using the conventional sources of energy and buying energy from the grid, we want to install a fuel cell CHP system. A CHP system is basically a system which can produce heat and power in the same time. With the above data on load profile, I can somehow figure out as to which power rating of fuel cell I can use for my purpose. So far, it’s easy to figure that out.
But now comes the question of optimization. According to my task I have to optimize mainly two things: (1) installation and operation cost of fuel cell-CHP system (2) installed capacity of my fuel cell CHP system. I can only imagine that for optimizing the installed capacity of my fuel cell-CHP system, there are some factors that must be considered. For example: data of the fuel cell and the other components that are used in the overall fuel cell-CHP system. Data like rated power of the fuel cell, efficiency, thermal to electric power ratio of the fuel cell, thermal and electric demand, operational hours, size of different components used in the fuel cell-CHP system (I am thinking of including an electrical & thermal energy storage devices, so that extra demand can be met or energy can be fed back to the grid and hence can be profitable) In the same way I can again imagine that for optimizing the installation and operational cost of fuel cell-CHP system there are certain factors that must be taken into account. For example : cost of the fuel for the fuel cell, cost of fuel cell itself, cost of other components used in the overall fuel cell-CHP system, maintenance cost, government subsidies for using fuel cell-CHP systems, profit or loss for selling extra energy or purchasing it from/to the grid.
Now before actually starting with writing a Code in MATLAB , i have to somehow represent These above mentioned factors in a function(or a Code) or maybe make an algorithm or a model but i have no clue how to do that. if there is anyone who can Maybe help or give some advice, i would be very very grateful. (Thanks in Advance)

Answers (1)

Stephan
Stephan on 1 Sep 2018
Hi,
i recommend you to start with paper and pen and first create a mathematical model. To optimize, you need an objective function. Maybe a multi-objective optimization approach is the best for your problem. Which boundary conditions have to be fulfilled? Are there integer conditions for decision variables? What are the decision variables and what restrictions apply to them? Is the objective function linear? All these and other questions will have to be resolved before it makes sense to write the code. If you have developed a model and have questions about its implementation in Matlab, come back with a new question. You will get help here.
Information and examples about optimization in Matlab can be find here:
Best regards
Stephan
  10 Comments
Stephan
Stephan on 1 Sep 2018
Edited: Stephan on 1 Sep 2018
That sounds like an interesting task - I will continue to subscribe to the thread.
Since this is a thesis, it should be ensured that the creative / scientific part is done by yourself. For questions regarding the use of Matlab, please visit the forum here.
So if there are questions like:
  • Why do I receive this error message from Matlab?
  • My code does not do what it should - What should I do?
  • Here's my model - Which solver do you recommend to me?
etc., then that should not be a problem.
But when it comes to the mental performance that should be the core of your work - then it's your turn.
I wish you a lot of success and will be happy to help you (just like the other contributers here)
claudia sommer
claudia sommer on 1 Sep 2018
Thanks a lot. you already put me in a right direction , now i can definitely think of something.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!