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
130
votes
6 answers

How to install GCC piece by piece with GMP, MPFR, MPC, ELF, without shared libraries?

How do I install GCC (the GNU Compiler Collection) piece by piece, using the current version, using the correct versions of dependencies, not using a package manager (like yum, rpm, apt, dpkg), and not using shared libraries? Typical developers will…
joelparkerhenderson
  • 34,808
  • 19
  • 98
  • 119
105
votes
6 answers

Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+

I downloaded GCC 4.5 from http://www.netgull.com/gcc/releases/gcc-4.5.0/ but when I try to setup / build I am getting below error: Linux:>~/shared_scripts/bin/gcc/gcc-4.5.0 1040> /x/home/prakash_satya/shared_scripts/bin/gcc/gcc-4.5.0/configure…
Programmer
  • 8,303
  • 23
  • 78
  • 162
12
votes
1 answer

Multipeer Connectivity Error "Send BINDING_REQUEST failed" in iOS10

I'm seeing the following errors in my MPC app in iOS 10 and I'm looking for some help explaining them. After the peers are connected, several of the errors below pop up. The peers end up connecting, but it is slower than in iOS 9 (appears that the…
rswayz
  • 1,122
  • 2
  • 10
  • 21
12
votes
5 answers

Installing gmpy on OSX - mpc.h not found

I have brew installed mpcand gmp , but when I try to pip install gmpy2 I get a compile error on the line #include "mpc.h" so for some reason clang is having trouble finding the mpc library. I'm not sure what I should do at this point.
Jakob Weisblat
  • 7,450
  • 9
  • 37
  • 65
5
votes
1 answer

How to solve overshoot by tuning parameters with gekko?

GEKKO is optimization software for mixed-integer and differential algebraic equations. It is coupled with large-scale solvers for linear, quadratic, nonlinear, and mixed integer programming (LP, QP, NLP, MILP, MINLP). I use gekko to control my TCLab…
ys guo
  • 133
  • 6
5
votes
1 answer

Using GEKKO moving horizon estimation and Model predictive control, React on measurement data and not on the average measurement

I have been working on this model what simulates the inventory of a store. Only thing i can not get right is using the measurement data with in the calculation of the inventory. Currently it only uses the average measurement data for the…
4
votes
1 answer

How I compile multiprecision.org MPC code?

I am trying to use the MPC library from www.multiprecision.org. I want to compile the C++ code with g++ under Linux, with GMP and MPFR both installed. The point is I don't know what compiler flags I should use.
hmhm
4
votes
2 answers

Gekko MPC controller - update parameters at each time step

I am working on an MPC problem with individual linear models predicting the control variable at each time step in the prediction horizon (see below where u is the manipulated variable and y is the control variable). The coefficients of each linear…
cdgood
  • 61
  • 3
4
votes
1 answer

There is a real reason for gcc to be so conservative with its dependecies ? ( MPFR, GMP, MPC )

I'm wondering if someone knows why gcc tends to be so conservative about the versions of the libraries to use to compile and build gcc itself . The main reasons why I'm asking this are : I think that there is a big shift between the "implicitly…
user2485710
  • 9,451
  • 13
  • 58
  • 102
3
votes
1 answer

The control horizon and prediction horizon

I have reviewed the bibliography and the Gekko programming structure for model predictive control.  Although I understood the way it is programmed and their purpose. I would like to understand how Gekko manages the differences between the control…
3
votes
1 answer

Is it possible to use this gekko MPC method online on a real robot?

I want to do some trajectory tracking on a real robot, and I want to use MPC, so I found this gekko. I can make to simulations of my robot and stuff, but is it possible to use it real-time, as I see it take some time to calculate the optimal…
3
votes
3 answers

GMPY2 doesn't install

EDIT: I'm using Win 10 and Ubuntu from the app store I have tried to install gmpy2 by using: apt-get install libgmp-dev apt-get install libmpfr-dev apt-get install libmpc-dev and also downloaded MPIR and compiled it. however using pip install gmpy2…
gypsyzz
  • 43
  • 1
  • 1
  • 6
3
votes
1 answer

Invalid displayName passed to MCPeerID

When I tried to pass device udid + device name, i received below crash Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Invalid displayName passed to MCPeerID'
Gobi M
  • 3,243
  • 5
  • 32
  • 47
3
votes
0 answers

Trouble building GCC 4.8.2: cannot find -lmpc

When I try to compile GCC 4.8.0 as a part of a greater system, in a custom directory. I have no sudo rights on this server and therefore I'm building everything from source. However, I can't get the dependencies gmp, mpfr and mpc to work. When…
Boris Mulder
  • 308
  • 2
  • 14
2
votes
1 answer

Optimization of Hamiltonian system of a double spherical pendulum with gekko. Works without opt vars, no solution when trying to actually optimize

I am trying to optimize a set of equations simulating pendulums with springs between the initial vector and eachother, in R^3. It is actually a system of matrices and vectors, but I have written it out like this to make it easier to see each…
Petter
  • 81
  • 4
1
2 3 4 5 6