Skip to content

Tag: gekko

GEKKO variable update in real time

How do I need to setup m.time and update the initial conditions if I want to use GEKKO in an online simulation that updates every second? I have tried: but it doesn’t seem to update the values. I’m using IMODE = 4 This is just a dynamic simulation application. No control at the moment. Answer Gekk…

GEKKO. X value does not go beyond certain point

I need to solve 1D plane flight optimal control problem. I have a plane that is 1000m high. I need it to travel certain distance (x) forward along x-axis while minimizing fuel consumption. And when it achieves travels that distance x I need program to stop. This function controls it: m.Equation(x*final<=15…