Comments (4)
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.
thx for the quick reply.
I'll first try to add a dummy ineq constraints that you described!
from qpth.
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.
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)
- Query for Equation (7) and (8) in main paper HOT 1
- Infeasibility HOT 1
- Accuracy issues with batches HOT 3
- Accessing dual variables
- What is the mean of print? HOT 2
- Compute the gradient of z with regard to what?
- Canβt solve QP problem when dimension is too high. HOT 3
- How to suppress warning HOT 1
- CVXPY not defined as dependency HOT 2
- how should i installed dpth? HOT 1
- Error in running code of end to end learning program HOT 8
- Error in running qpth of e2e-model-learning. AttributeError: module 'torch' has no attribute 'all'
- How to solve a just Linear problem? HOT 1
- Can we solve QP with only equality constraints?
- Missing comma in setup.py HOT 1
- Trivial problem returns NaN
- torch.eig is deprecated for a long time and is being removed HOT 7
- Hard to follow the equation (7), (8) in the OptNet paper HOT 2
- Missing comma in setup.py file uploaded to pipy. HOT 3
- Output of qpfunction is nan HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qpth.