Coder Social home page Coder Social logo

Comments (2)

abhishek-pandala avatar abhishek-pandala commented on May 26, 2024 1

Hi sucrozzg, Thank you for your interest in our solver. As per your question, I have the following suggestions

  1. I am not sure how the cpp interface is slower than Matlab. The mex file in matlab calls the cpp interface itself. So I believe there should be some problem with your cpp code. Is the cpp code being run in debug mode? Also are the inputs (dimensions of matrices, number of constraints, etc) given to the qpSWIFT solver in the correct format ?
  2. Since the problems you are comparing in matlab and cpp are different, I am wondering if the input matrices provided in the cpp interface are more dense than the ones used in matlab. qpSWIFT performs sparse LDL decomposition and the performance of the solver heavily depends on the sparsity pattern of the input matrices. Have you checked the solve time for RF_MPC using cpp interface ?
  3. qpSWIFT does not perform infeasibility detection and hence any infeasible problem is likely to hit the maximum number of iterations. In addition, max iterations are also reached when the input matrices are ill-conditioned. Check to see if these issues arise in your code.

from qpswift.

sucrozzg avatar sucrozzg commented on May 26, 2024

Thank you, professor. Based on your suggestion, I re-installed qpSWIFT following the tutorial on GitHub. This worked well. The solving time of the CPP interface has reached the same level as Matlab. I think maybe there is some omission in my previous installation steps. This is a good product. Thank you!

from qpswift.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.