gekko Questions

1

Hello I was using Python Gekko to solve a minimization problem. Currently I am not satisfied with the solution from my Gekko Model and would like to improve the solution by iteratively selecting di...
Engagement asked 6/1 at 17:40

9

Solved

How do you check if a package is at its latest version programmatically in a script and return a true or false? I can check with a script like this: package='gekko' import pip if hasattr(pip, 'ma...
Pomander asked 31/10, 2019 at 17:43

1

Here is a simple example of solving the system of linear equations and the example of using for loop for many equations. import numpy as np from gekko import GEKKO m = GEKKO(remote=False) # Rando...
Pithecanthropus asked 22/4, 2021 at 17:1

1

I am curious what each solver output column from IPOPT solver suggests. Is there any material that explains this? Below is solver output from IPOPT solver. And I'd like to know what the inf_pr, inf...
Eckstein asked 9/2, 2021 at 21:0

3

Solved

I'm trying to install the gekko module in my python terminal using python install -m pip gekko but it is throwing an error not recognizing pip: can't open file 'pip': [Errno 2] No such file or dir...
Dowsabel asked 5/4, 2019 at 23:38

1

Solved

I haven't seen a question related to this, yet it pops up despite several of my efforts to the contrary, so I was hoping that someone could help me understand what's going on. I'm new to Python's...
Taxidermy asked 12/3, 2020 at 7:24

2

Solved

I am new to GEKKO and also to modeling bioreactors, so I might be missing something obvious. I have a system of 10 ODEs that describe a fed-batch bioreactor. All constants are given. The picture b...
Marten asked 10/12, 2019 at 2:52

2

Solved

I am learning to use Gekko's brain module for deep learning applications. I have been setting up a neural network to learn the numpy.cos() function and then produce similar results. I get a goo...
Chkalov asked 21/11, 2019 at 19:12

1

Solved

I got a syntax error in 'Position: 5'. I can't find the source of the error as not knowing where 'the Position 5' indicates. How can I recognize the problematic line in the original code by reading...
Whisler asked 21/11, 2019 at 18:52

1

Solved

My code work on small variables. But when I do in 128*128 array of variables, the error below is appearing: APM model error: string > 15000 characters Consider breaking up the line into multip...
Barramunda asked 14/11, 2019 at 9:59

2

Solved

An optimization problem with a squared objective solves successfully with IPOPT in Python Gekko. from gekko import GEKKO import numpy as np m = GEKKO() x = m.Var(); y = m.Param(3.2) m.Obj((x-y)**2...
Kimura asked 31/10, 2019 at 15:12

1

Solved

I am currently using an MPC to have the TCLab heater reach a certain set point temperature. I am trying to have an MHE update certain parameter values every 50 seconds. I have a previous MPC model ...
Boxberry asked 10/10, 2019 at 14:20

1

Solved

I'm trying to optimise an exponential objective function with GEKKO, but I don't know if the selected solver is the best one for these kind of problems. Is the selected one a valid choice?? impo...

1

Solved

I've got an infeasibility error message from GEKKO simulation. I want to retrieve the 'infeasibilities.txt' file for debugging the algorithm. Please let me know where I can find the file. R1 = ...
Vegetation asked 19/6, 2019 at 16:6

3

I tried to convert an example from gekko python optimizer by using the list, array x[] instead of variables x1..x4. This is the code which gives the result, but I think it is not correct from gekk...
Kato asked 23/10, 2018 at 8:54

1

Solved

I want to use my own Genetic Algorithm (GA) to solve a Mixed Integer problem: https://mintoc.de/index.php/Batch_reactor Can I incorporate my solving method in GEKKO? something like... m = GEKKO...

2

I'm trying to solve a non-linear optimization problem. I've duplicated my issue by creating the code below. Python returns TypeError: object of type 'int' has no len(). How can I include an IF stat...
Rowdyism asked 30/3, 2019 at 22:39
1

© 2022 - 2024 — McMap. All rights reserved.