Skip to content

Tag: gekko

Get variable values at each iteration of GEKKO optimization

I would like to get the value of the variables at each iteration of the optimization process when using Python GEKKO. For example, the following code from the documentation ( solves problem HS71: The output displayed in the console is the following: This includes the value of the objective function at each iteration, but I would also like to get

mixed integer programming optimization

I am trying to understand how gekko and its different types of custom variables work. So I wrote a very simple optimization problem, but it won’t find the optimal solution, at least this is what i think the error message means. The code is a simple set switch combination (braco_gas and braco_eh, both binaries) multiplied by some weights (vazao and

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 Gekko manages the initial conditions

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<=1500). And for some reason during the simulation my x

Are there IEC 61131 / IEC 61499 PLC function blocks that use OPA UA to transport data?

I have a machine learning and advanced control application in Python (TensorFlow + Gekko) that I need to integrate with a Programmable Logic Controller (PLC) that provides the data acquisition and final element control. Can I use a rack-mounted Linux (preferred) or Windows Server as the computational engine, with data transport through OPC-UA (OLE for Process Control – Universal Architecture)?