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
0
votes
0 answers

Linear Optimization: Set of inequalitiy constraints where only one has to be True

I am currently implementing a Optimizationproblem, where I have a set of inequalitiy constraints. My Problem is that these constraints are connected with an AND if I use fmincon. So the Problem is solved if all constrained are satisfied. For my…
Helene
  • 1
  • 1
0
votes
0 answers

Why could GCC find the libraries for GMP, and MPFR, but not for the MPC?

I am trying a build gcc on my Mac it is an intel Mac. I do have these libraries, the libraries are here, so it is usr/local/lib for the libraries and the headers are here usr/local/include. I also successfully compiled and install gmp and mpfr…
Rose
  • 1
  • 1
0
votes
0 answers

Failed to build cross native aarch64 mpc library on x86: libtool script in mpc incorrectly calculates $dependency libs

I am trying to build a gcc cross/native toolchain for aarch64 (build=x86_64,host=aarch64,target=aarch64) and am getting stumped on libmpc (version 1.2.1). The build fails with the following error: ../libtool --tag=CC --mode=link…
Chris Z
  • 3
  • 3
0
votes
2 answers

Vector erase but I had vector subscript out of range error

I want to erase radius < 20, but I received vector subscript out of range error. for (int i = 0; i < ball.size() ; i++) for (int j = i + 1; j < ball.size(); j++) { int a = ball[i].x - ball[j].x; int b = ball[i].y -…
0
votes
0 answers

MPC in simulink for reference tracking

I have written a matlab code for tracking using mpc. how can i implement that on simulink? I dont want to use any custom block of mpc, so kindly help me by providing a simple example (specifically for tracking) because i also have implemented a…
0
votes
0 answers

How do I find and updated MPC header file to avoid "warning: MPC header version 1.0.2 differs from library version 1.0.3."

I am using MINGW on windows. I am compiling a old program using gfortran function. I have been received the following error: warning: MPC header version 1.0.2 differs from library version 1.0.3. I have ran the MINGW installation manager and have…
mbranag
  • 1
  • 1
0
votes
0 answers

MPC functions used on buildyourownlisp.com do not seem to work or exist

I am currently working through buildyourownlisp and really enjoy it so far, but I am currently stuck with a weird problem. The book is using the multiprecicision C library for writing grammar for the Lisp interpreter. Since I have devtools installed…
luca
  • 23
  • 6
0
votes
2 answers

libtool can't find the la when linking with option -L

I met the problem when compiling the source code of mpc which will depend on gmp. The command to compile mpc is as below. ./configure --with-mpfr=/home/wy/tmp/mpfr-4.0.2/ins --with-gmp=/home/wy/tmp/gmp-6.2.0/ins…
user3236879
  • 511
  • 2
  • 7
  • 17
0
votes
0 answers

Python3 in subprocess.check_output uses python2.7

I have a script managing mpc-commands with python3. I use subprocess.check_output to get information: s = (subprocess.check_output("mpc current -f %title%", shell=True,encoding = 'utf-8')) That works well and gives me the value as a string. Trying…
heimi
  • 499
  • 7
  • 16
0
votes
2 answers

I cant figure out how to send an array out of the optimization.minimize function

I am building a Python application for use in sientific computing. The application is a Model Predicive Controler (MPC) and I am using scipy.optimize.minimize function as the optimization algorithm. solution_guess = minimize(objectiveFunction, …
0
votes
1 answer

Open-loop or Closed-loop (reactive) Path planning?

When we do path planning for collision avoidance, we can realize it open-loop or closed-loop. The open-loop method is to use an inherent simplified model, say, Bicycle model, for example, and propagate the system forward with an optimal input by…
0
votes
1 answer

How to define standard mathematical notation with mpc parser

I am reading a compiler tutorial here www.buildyourownlisp.com. It uses a parser combinator called mpc. What I have at the moment will parse polish notation, but I'm trying to work out how to use standard notation with it. I just can't seem to how…
db24624
  • 1
  • 1
0
votes
0 answers

error: no member named 'emplace' , when compiling Liquibook using make all

In file included from ./Market.h:6: In file included from /Users/shubhamsharma/projects/liquibook/src/book/depth_order_book.h:6: /Users/shubhamsharma/projects/liquibook/src/book/order_book.h:559:17: error: no member named 'emplace' in …
7ur7l3
  • 31
  • 6
0
votes
1 answer

System dynamics as constraints of fmin_slsqp

I've been trying to develop a nonlinear Model Predictive Control (MPC) in python. The goal of this controller is to minimize a cost function, with the system dynamics as constraints of it, as described in 1. For those unfamiliar with it, each time…
João
  • 11
  • 2
0
votes
1 answer

set device name to a peer in session Multipeer connectivity swift3

I want to build an app something like queue manage that request a queue and call the queue to counter service number 1 2 3 problem is how can I set the device to counter 1, counter 2 depends on device connected thanks for answer
Jeab Kung
  • 1
  • 4