Giter Club home page Giter Club logo

Comments (2)

giaf avatar giaf commented on August 27, 2024

Hi, I'm not sure of what you mean. And honestly I don't remember much about how the solver was 2 years ago :p

So, the HPIPM structures are supposed to be used as "black box", and only accessed though setters and getters. This is because e.g. some data is store into BLASFEO matrix format (as opposite to column-major), or transposed, or packed and so on. So, if you operate though the setter/getter interface, if you change your array of doubles somewhere, then surely you need to call a setter (either the set_all, or the individual setter like set_A) to update the memory in the actual HPIPM structure (which is the data "seen" by the solver).

Since we are in C and structures do not have private members, it is obviously also possible (at your own risk) to directly change yourself the structure members (and not though the setters/getters), if you know the format in which they are stored (e.g. blasfeo, packed, transposed, ...), and if you take the risk that a future solver version may change this format. I don't know if this was what you were doing with the ct-v2 version.

Hope this helps to clarify, otherwise if I didn't get what the issue is, some code snippet can help.

from hpipm.

markusgft avatar markusgft commented on August 27, 2024

Thank you for the answer, this is what I suspected. Essentially, it means that I need to call the "set_all" routine within the control loop, I will try to make some timings regarding this and see how things go!

from hpipm.

Related Issues (20)

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.