# Tag Info

### Fast way to repeatedly solve many similar LPs/QPs in parallel

The OPTMODEL modeling language in SAS (disclaimer: I work at SAS) supports two features for solving independent optimization (LP or otherwise) problems concurrently: The COFOR loop, which ...

### Fast way to repeatedly solve many similar LPs/QPs in parallel

A very easy way to do this is to use multiprocessing alongside cvxpy. It won't be fastest possible, but since you want to stick ...

### Conditions for minima in calculus of variations

It is possible to apply the notions of stationary points and the second derivative of a function to functionals. For $|\varepsilon|\ll1$ and and a differentiable function $h$, we can write, using ...

### Conditions for minima in calculus of variations

Coming from the world of optimal control, I tend to view the calculus of variations from a Pontryagin point of view. The conditions stated by Pontryagin are necessary, and sufficient under certain ...
Accepted

### Fast way to repeatedly solve many similar LPs/QPs in parallel

After a good bit of experimentation based on the ideas posted, here was my solution: Do as many matrix multiplications up front using pytorch on the GPU to simplify the problem. This means two things....

### Fast way to repeatedly solve many similar LPs/QPs in parallel

If I understand this correctly, you are solving 900 QPs (one for each combination of $i$ and $j$), tweaking the parameters, then solving all 900 again (and again). One possibility to try would be hot-...
Accepted

### Minimize $\int_0^\infty g'(x)f(x)\,dx$ where $f(x)$ has a log-normal density

Proposition. There is no minimiser. Proof: An equivalent version of your problem is as follows. Statement. We wish to minimise $$\int_{-\infty}^\infty xe^{q(x)-x^2}\,dx$$ where $q(x)$ is a strictly ...

### Integer Decision Variables Always Forced to Zero in Minimization Problem (MINLP)

You can try adding a constraint forcing one of the affected variable to be nonzero. If the model becomes infeasible, you can try to find the conflicting constraints. If the model stays feasible, this ...

### Integer Decision Variables Always Forced to Zero in Minimization Problem (MINLP)

I only skimmed your model so others may be better able to point to the error directly, but here are some reasons this may occur: Constraints: as you mention, perhaps they're set so that it's not ...

### Fast way to repeatedly solve many similar LPs/QPs in parallel

I suggest you consider the Parameterized Fusion API for MOSEK (available in Python). You can use it to construct your model without passing actual data for the parameter values, and then set the ...
Note that $V(O)$ is simply of the form $\sf Q_1/L_1$ where $\sf Q_1$ is a quadratic and $\sf L_1$ is a linear function of $p$. This can be written as ${\sf{L_2}}+c/\sf{L_1}$ where $\sf L_2$ is also ...