Category "gekko"

GEKKO: Statespace Model MPC: Output Data Loop: At the beginning of each calculation step U1 should be the previously calculated value Y

Can you give me a code example with which I can implement the feedback presented in the illustration? I would like to connect per time step the calculation resu

Solving optimal control problem with constraint x(0) + x(2) =0 with GEKKO

I am starting to learn Gekko and I am testing optimal control problems. I am trying to solve the following optimal control problem with Gekko The solution of t

how to model a GEKKO constraint to guarantee the count of variables with same value > k

I have the following objective function : Minimize(sum(abs(di[i]-d[i]) ) ) and I want to add a constraint to make sure that d[i] is appeared at least k times i

I try to use Gekko to find Q, R1 and P1. Why do I report an error

import math from gekko import GEKKO m = GEKKO() Q = m.Var(value=0) # 给定初值为0 P1 = m.Var(value=0) # 给定初

Problem on solving Partial Differential Equations with Gekko Python

I get a converging solution while trying to solve a Partial Differential Equation attached below. In my code, I want to calculate a volume flow rate over time b

discrete-time and continuous-time transfer functions with Gekko sysid

In a project, I have to use python language to tune the PID coefficients of the boiler de-super-heater control loop. So, I use the Gekko package to identify the

Python GEKKO: Objective function not showing correct results

I am trying to optimize the trajectory of a thrust propelled system. The control variable is the mass flow rate, and the final objective is to maximize the mass

GEKKO does not find optimal solution for a moon lander that does not go to zero height at zero speed

I'm trying to solve an optimal control problem where a person lands on the Moon, but has a device that can propel her upwards, via a control parameter, alpha. T

Problem on Solving a 1D Navier Stokes with Compressible Mass Conservation (Hydraulic Damper)

I would like to solve a 1D Navier equation on a cylindrical imposed tubes(cartesian cordinates). The flow is along y direction, with right chamber having press

How to Fix "Solution Not Found" Error in Python GEKKO Optimal Control Code

I'm trying to reproduce the result in Figure 1 of the paper "Immunotherapy: An Optimal Control Theory Approach" by K. Renee Fister and Jennifer Hughes Donnelly,

GEKKO optimizer fails to reach 2nd iteration

I just got started with GEKKO. I am trying to optimize a 3D array with 200 variables, but they only take binary values (0 or 1). This is what my code looks like