Double Tank Level Control

  Рет қаралды 2,015

APMonitor.com

APMonitor.com

Жыл бұрын

A double tank is an example of a switching system where the input to the upper tank can be one of two flows. The upper tank drains to the lower tank and the lower tank drains to a reservoir. The flow to the upper tank is the manipulated variable to meet a lower tank target level. A higher upper tank level leads to a higher flowrate into the lower tank. The dynamics of the two levels are described by two differential equations.
The set point is 3. The two states x are the fluid levels in the upper and a lower tank. The flow into the upper tank is either 1 or 2, the upper tank flows into the lower tank, and the lower tank flow exits the system. The objective of the optimal control problem is for the lower tank to reach the setpoint during the optimization window of 10 minutes.
Source Code: apmonitor.com/do/index.php/Ma...

Пікірлер: 8
@HuyNguyen-bw4sv
@HuyNguyen-bw4sv Жыл бұрын
Thank you!
Жыл бұрын
Nice!
@hakankosebas2085
@hakankosebas2085 11 ай бұрын
do you have portfolio optimization videos
@apm
@apm 11 ай бұрын
Sorry, no videos on that topic. Maybe ask ChatGPT for an example to get you started: import numpy as np from gekko import GEKKO # Simulated asset data: mean returns and covariance matrix mean_returns = np.array([0.1, 0.15, 0.2]) cov_matrix = np.array([[0.03, 0.005, 0.01], [0.005, 0.04, 0.015], [0.01, 0.015, 0.05]]) num_assets = len(mean_returns) # Create a Gekko model m = GEKKO(remote=False) # Variable for asset allocation weights x = m.Array(m.Var, num_assets, lb=0, ub=1, value=1/num_assets) # Constraint: sum of weights equals 1 m.Equation(np.sum(x) == 1) # Expected portfolio return expected_return = np.sum(mean_returns * x) m.Obj(-expected_return) # Maximize expected return # Risk constraint: portfolio standard deviation
@popodori
@popodori Жыл бұрын
a more practical solution would be to use a globe valve
@apm
@apm Жыл бұрын
Globe valves are a great example of a type of actuator that is designed for incremental changes between on and off. It also helps the solution improve because non integer variables are easier to optimize.
@user-oh9uf3ht3o
@user-oh9uf3ht3o Жыл бұрын
Excel...
@apm
@apm Жыл бұрын
See www.apmonitor.com/do/index.php/Main/DynamicControl for an example with Excel
Ethanol Bioreactor
26:49
APMonitor.com
Рет қаралды 2,2 М.
Data-Driven Education FOPAM 2023
41:02
APMonitor.com
Рет қаралды 931
EVOLUTION OF ICE CREAM 😱 #shorts
00:11
Savage Vlogs
Рет қаралды 13 МЛН
Son ❤️ #shorts by Leisi Show
00:41
Leisi Show
Рет қаралды 9 МЛН
A little girl was shy at her first ballet lesson #shorts
00:35
Fabiosa Animated
Рет қаралды 18 МЛН
Visualizing Karush-Kuhn-Tucker (KKT) conditions
1:03
GTI UPM
Рет қаралды 3 М.
The Hidden Cost of Skipping Key Stages of Development
6:00
The School of Life
Рет қаралды 136 М.
Generative AI for PSE
32:44
APMonitor.com
Рет қаралды 6 М.
Building and riding increasingly small bikes
18:01
Stuff Made Here
Рет қаралды 605 М.
The Best Browsers for Privacy and Ad Blocking
8:40
Mental Outlaw
Рет қаралды 65 М.
Easy Steps to Close the Gap Between Who You Are and Who You Want to Be!
4:18
benjamin'sSparkofwisdom
Рет қаралды 177
Unlock Athletic Potential with Machine Learning
6:14
APMonitor.com
Рет қаралды 1,1 М.
GPU Large-Scale Nonlinear Programming
1:11:07
APMonitor.com
Рет қаралды 1 М.
Хакер взломал компьютер с USB кабеля. Кевин Митник.
0:58
Последний Оплот Безопасности
Рет қаралды 2,4 МЛН
تجربة أغرب توصيلة شحن ضد القطع تماما
0:56
صدام العزي
Рет қаралды 64 МЛН
📱магазин техники в 2014 vs 2024
0:41
djetics
Рет қаралды 728 М.
iPhone socket cleaning #Fixit
0:30
Tamar DB (mt)
Рет қаралды 19 МЛН