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
1
vote
1 answer

Freeing an array of mpc_t in C

I'm new to C programming and I couldn't find solution to my problem. Although the code works (I've been able to include it in other program), when it tries to free the memory assigned by calloc(), it returns the following error: free(): invalid next…
Javier Garcia
  • 539
  • 1
  • 4
  • 15
1
vote
1 answer

python bigfloat installation issues

My Problem is similar to this poster and I'm using a MAC OsX 10.9.5 version: python 'bigfloat' package installation issues When I try to install the "mpc-1.0.2" package, it doesn't compile and gives this error: grep: /home/case/local/lib/libgmp.la:…
ML_Passion
  • 1,031
  • 3
  • 15
  • 33
1
vote
1 answer

Detecting sampling instant for a discerete controller in MATLAB/Simulink

Let us assume that I have a continuous system in Simulink to be controlled. First, I apply a Kalman filter to estimate the states of the system. In the next stage, I will use the estimated state (x_hat) in an embedded MATLAB function which calls a…
user3489173
  • 45
  • 1
  • 9
1
vote
1 answer

Building GCC with MPFR, GMP and MPC

Of course we all know building GCC version >= 4.1.x requires the supplementary packages MPFR, GMP and MPC to be present. There's a few ways to handle these GCC dependencies: 1) Download and build each supporting package separately and then tell make…
SnakeDoc
  • 13,611
  • 17
  • 65
  • 97
1
vote
2 answers

Output filtering with sed

I need filter this mpc output: Burzum - Budstikken [playing] #6/7 5:03/10:10 (49%) volume: 60% repeat: off random: on single: off consume: offere To this: 5:03 Using sed.
user2079266
  • 49
  • 1
  • 3
1
vote
1 answer

gmp, mpc + mpfr: is not symbolic link

I build gcc 4.6.1 and when I run ldconfig it comes back with this result: ldconfig: /usr/local/mpc/lib/libmpc.so.2 is not a symbolic link ldconfig: /usr/local/gmp/lib/libgmp.so.3 is not a symbolic link ldconfig: /usr/local/mpfr/lib/libmpfr.so.1 is…
boundless08
  • 303
  • 4
  • 17
0
votes
1 answer

why disable-shared in gcc 4.7 build together with gmp mpfr mpc for native compile?

enviroment: cpu: XEON NEHALEM E5530 os: SUSE 10 SP2 gcc: 4.1.2 m4,binutils,autoconf,automake: UPDATED newest for required by gcc 4.7 build. PATH/LD_LIBRARY_PATH set correct. object: native optimization for gcc php httpd. with -march=nocona…
woniushan
  • 1
  • 2
0
votes
0 answers

Adding algebraic inequality constraints in 'mpctools'

I am using MPCTools package (from Rawlings group) in MATLAB to setup a Non Linear MPC problem and want to add inequality constraints in states and control (something like 2x1+5x2+9u1<=12 or f(x1,x2,u1)<=12) which needs to be satisfied at all times.…
anshul
  • 1
  • 1
0
votes
0 answers

Akai MPC Bootscreen (Splash Screen)

I wanted to change the boot screen or splash screen of an MPC X, I got SSH access and I removed the files from the partitions (mmcblk0p4 {splash} / mmcblk0p5 {recoverysplash}) but I got stuck. Image format in MPCX: RAW BRGA, width: 800 height: 1200…
RuralGalaxy
  • 121
  • 6
0
votes
0 answers

Define MPC manipulated variables as pulses

I have a model of a simple power system in simulink where I want to control the voltage stability. The only thing I can control is the tap position of my OLTC(On Load Tap Changer). Therefore, I have two inputs to my plant; "up" and "down" which goes…
Johan
  • 1
  • 1
0
votes
0 answers

Neural Network MPC (do_MPC library)

I want to use neural networks as models for do_MPC so, As mentioned in do_MPC doc, converted the tf model to ONNX model and converted it to Casadi format with do_MPC.sysid.ONNXConversion. Lastly, I tried to check using casadi.convert, but the error…
이윤형
  • 1
  • 1
0
votes
0 answers

for 'scipy.optimize.minimize' (SLSQP) optimizer, can we do the optimization with dttype=np.float32?

I am trying to optimize the cost function(mean squared setpoint error) for pH process with the help of scipy.optimize python library, since my laptop specs is low it is taking more time to converge to the optimal point. I think it is due to the…
0
votes
0 answers

How to run multiple S-function modules in one MATLAB/Simulink model?

The flag of the S-function module is a variable defined in the system. The flag of one S-function affects the flag of another S-function, resulting in a running error. I would like to ask if there is any way to run multiple S-function modules in one…
LEON
  • 1
  • 1
0
votes
0 answers

Why MATLAB Simulink says "imulink cannot propagate the variable-size mode from the output port ..."

I am trying to implement a Software in the loop simulation, I do not find the issue here. I am currently debugging using constant input vectors. Appears the problem is given by the allocation and definition of u1, the output variable. What am I…
0
votes
0 answers

does anyone know this question about' module 'mpctools' has no attribute 'getCasadiFunc''?

my mpctools version is '0.9.0' it seems that mpctools doesn't work enter image description here enter image description here thanks if someone know about 'mpctools'