Questions tagged [mpc]

MPC: multiprecision C library for arithmetic of complex numbers

Mpc is a C library for the arithmetic of complex numbers with arbitrarily high precision and correct rounding of the result. It is built upon and follows the same principles as Mpfr. The library is written by Andreas Enge, Philippe Théveny, Paul Zimmermann and Mickaël Gastineau and is distributed under the Gnu Lesser General Public License.

http://mpc.multiprecision.org/

MPC is not :

88 questions
2
votes
1 answer

Optimal control of constrained discrete Hamiltonian system. Using GEKKO?

So in my master's thesis I am at the stage where I am to do a simple optimal control of my system. The dynamic system is of Hamiltonian form with constraints, and prior to looking at optimal control, the system has been solved stepwise using the…
Petter
  • 81
  • 4
2
votes
1 answer

Terminal Set and Terminal Cost using Gekko Library

I have a NMPC controller written in python using Gekko library for a nonlinear model of inverted pendulum mounted on the cart. I want to add terminal set and terminal cost using Gekko Library. This is how I defined the objective function in…
user2002
  • 21
  • 1
2
votes
1 answer

Gekko model with variable delay

I have a system with a non-constant delay. Does gekko support this type of problem and can it be handled in the MHE and MPC formulation? Reading the docs I can see how to implement the delay, but I am not sure how the state estimation part of the…
2
votes
0 answers

Non Linear MPC optimization of a 2 dimensional drone

I am trying to simulate a drone on a 2-dimensional lunar surface. The drone can apply thrust the z-axis of the body, and the drone can change the angle of its body from -90 degrees to +90 degrees. The first planned acceleration in the y direction…
2
votes
1 answer

Gekko in a Docker Container

I was interested to know if there is a Gekko container available. Idea is to have a gekko MPC in a docker that can be easily configured with an interface to load a model, do tuning and visualize the results for a realtime application.
2
votes
1 answer

GEKKO MPC Solver with real-time measurements

Trying to solve MPC with an objective function and real-time measurements, one measurement getting in at a time. I am a bit at a loss on the followings: 1 - Is it necessary to shorten the prediction horizon to n_steps - step + 1 and reinitialize the…
2
votes
1 answer

MPC in gekko - add dynamics in process

I'm working on an MPC using gekko and I have face a problem to add dynamics to process. I have equations to two control properties thus once the program is running I need to add dynamic on MV, one by one. This is a non-linear process. In the future…
2
votes
1 answer

Degrees of freedom warning with MPC in GEKKO

I am trying to predict how a controller behaves given a temperature range using GEKKO and MPC. I am new to control systems and have never worked with either MPC or GEKKO before. I want to minimize the power of a fan in a ventilation system while…
Aleks
  • 378
  • 1
  • 3
  • 10
2
votes
1 answer

Gekko ARX model crash possible to load last iteration

I am pretty new to model predictive controls modeling with Gekko and in general. I have created an ARX MPC in Gekko, which is working great. I, however, noticed that in the first 50-80 iterations, the results are well.. disappointing. However, after…
MikkelB
  • 53
  • 4
2
votes
1 answer

Neural Network MPC

So I want to use Neural Network as my learned dynamic model function for MPC control in Python. I have not found any example/documention of doing this with open-source optimization packages like CASADI , GEKKO , do-mpc ? does any one have some…
2
votes
1 answer

Why is gmpy2 so slow at complex exponentiation?

I was using complex numbers in gmpy2 and noticed that it was slow. I narrowed it down the exponentiation operator. At first I thought it was just because it was complex. But then I compared it to mpmath which uses gmpy2 and it was so much faster: #…
Status
  • 912
  • 1
  • 12
  • 23
2
votes
1 answer

Implementation of a Lateral contoller using non linear model predictive control in GEKKO

I am trying to implement a lateral controller for an autonomous vehicle defined by a lateral dynamic model.Well, my problem is that the CVs don't reach the desired reference or target point set by SP. I am using the following equations of motion and…
Ahmed Siam
  • 23
  • 3
2
votes
2 answers

Which versions of GMP, MPC, and MPFR were used to compile GCC?

I've been asked to recreate a build of GCC 4.5.1 on both Red Hat 6 and Solaris 10. There are existing Red Hat 6 machines with 4.5.1 installed. The last Solaris 10 machine recently ate itself; hence, my inherited joy. No one around knows what…
Mike H
  • 31
  • 5
2
votes
0 answers

I am getting error while doing make GCC(Makefile:4999: recipe for target 'configure-stage1-gmp' failed)

These are the steps i followed for installing GCC Downloaded & extracted GCC, GMP, MPFR, MPC(latest versions). renamed GMP,MPFR,MPC without versions and moved GMP, MPFR, MPC to source folder of GCC took path of GCC and exported library "export…
viki
  • 37
  • 1
  • 4
2
votes
2 answers

Swift: MPC: How can a browser see all the advertisers nearby?

so initially we have this code: browser = MCNearbyServiceBrowser(peer: peer, serviceType: "sample") which sees all advertisers with the service type "sample" right? What if I want to see all advertisers without knowing their service type? How can I…
Sylvent
  • 66
  • 6