Giter Club home page Giter Club logo

Comments (4)

bamos avatar bamos commented on August 12, 2024

Hi, at some point, I had a version that didn't require inequalities, but now I've assumed in some places that there are always inequality constraints. I'll merge in a PR adding some conditionals to support no inequalities. You might also be able to set an inequality constraint that's always satisfied like x_0 <= 1e8, but I'm not sure if this will hurt stability.

Batch form is for solving multiple problems at the same time, not splitting up a problem.

I'll keep this issue open until we've added support back for no inequality constraints.

from qpth.

jdily avatar jdily commented on August 12, 2024

thx for the quick reply.
I'll first try to add a dummy ineq constraints that you described!

from qpth.

jdily avatar jdily commented on August 12, 2024

In terms of batch form, I am still a bit not sure how to do it.
In the original form, if I have a problem with around 3k variables, and I put that qp problem with eq constaints in cvxpy, and it is solved w/o problems.
My original first goal of using qpth and want to try if I can solve this problem w/o learning.
(and I will replace some part of the qp as unknown, and trying to learn them).
After my first try (sort of directly translate the thing I used in cvxpy set up to the qpth torch variables)
But it said it requires a huge chunk of memories.... so I think I must use it in the batch mode.
As the result, I am a bit confuse if it's solving multiple problems or splitting up my original problem??

thx

from qpth.

bamos avatar bamos commented on August 12, 2024

The batch mode is to take advantage of parallel batch operations when training on many examples at once. It's not for splitting up a problem and making it easier to solve as you're asking. You can see some more concrete examples in the optnet repo - https://github.com/locuslab/optnet

For that many variables, you can try using our sparse solver (though as a warning, it's still under development and you may have issues that we can work through)

from qpth.

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.