필터 지우기
필터 지우기

Minimize Cost in Simulink

조회 수: 5 (최근 30일)
Felipe Michelin
Felipe Michelin 2015년 7월 7일
편집: Sebastian Castro 2015년 7월 21일
Hello!
I'm doing a city hydrological system model in Simulink, with its respective variables.
For example: Water from user Treatment Capacity, Water Recharge, Water Demand. Everything in time-series.
So my question if its possible assign some block in simulink (to put like treatment cost, etc) in the model and minimize it, with linear programming.
.
I did a big research about and I think need to move to Optimization Toolbox right?
Do you guys think I'll need to generate every Decision variable and parameters by hand? It is a huge model!
Thank you so much!

답변 (1개)

Sebastian Castro
Sebastian Castro 2015년 7월 21일
편집: Sebastian Castro 2015년 7월 21일
You can use Optimization Toolbox and write cost functions by hand. Basically, each cost function must:
  1. Assign a combination of parameters
  2. Simulate the model using the sim function
  3. Collect outputs
  4. Use these outputs to evaluate a cost function
Alternatively, you can further add on the Simulink Design Optimization (SDO) tool which gives you nice user interfaces for just this kind of problem. It can make things easier if you have access (or can get access) to that product.
It's not easy to find an example using Simulink and Optimization Toolbox because the recommendation is that you purchase SDO when working with Simulink models. I did find this old example ... I immediately see some poor MATLAB practices like "assignin" and "evalin" functions, but it might still be a good starting point if you can't get access to SDO.
- Sebastian

카테고리

Help CenterFile Exchange에서 Manual Performance Optimization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by