How to optimize this treatment process?
조회 수: 2 (최근 30일)
이전 댓글 표시
Hello everybody,
I need to make an optimization in a leachate treatment plant to minimize the cost. I have the monthly flow rate data of the facility.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1264885/image.png)
At the same time, which chemical is used in which process and the unit prices of these chemicals are in the table below.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1264890/image.png)
And the energy cost table for treating 1 m3 of leachate is as follows.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1264895/image.png)
Finally, the cost table with energy, chemical and other expenses is as follows.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1264900/image.png)
What I want to do is to calculate the total chemical cost and total energy cost monthly based on the flow rates and keep the other expenses constant. I need to create a cost function and optimize it to be minimal. Can you help me?
Thanks.
댓글 수: 0
채택된 답변
Aditya Srikar
2023년 3월 30일
Hi Sena
The cost function is used in optimization problems, for evaluating “the performance of our algorithm”. It takes both predicted outputs and actual outputs and calculates how much wrong the model was in its prediction. It outputs a higher number if our predictions differ a lot from the actual values. You can optimize the cost function and thus reducing the error by using gradient descent algorithms.
You can refer the following documentations for help to write cost function and optimize it.
1) Write a cost function
2) Optimization Algorithm
Hope it helps !
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Chemical Process Design에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!