[mlpack-git] [mlpack] Implementation of primal-dual interior point SDP solver (#391)

Ryan Curtin notifications at github.com
Mon Jan 26 11:18:48 EST 2015


> +  math::Svec(X, sx);
> +  math::Svec(Z, sz);
> +
> +  arma::vec rp, rd, rc, gk;
> +
> +  arma::mat Rc, F, Einv_F_AsparseT, Einv_F_AdenseT, Gk,
> +            M, DualCheck;
> +
> +  rp.set_size(sdp.NumConstraints());
> +
> +  Einv_F_AsparseT.set_size(n2bar, sdp.NumSparseConstraints());
> +  Einv_F_AdenseT.set_size(n2bar, sdp.NumDenseConstraints());
> +  M.set_size(sdp.NumConstraints(), sdp.NumConstraints());
> +
> +  double primalObj = 0., alpha, beta;
> +  for (size_t iteration = 0; iteration != maxIterations; iteration++)

`iteration` should probably initialize to 1 if you want to allow unlimited iterations with `maxIterations = 0`.

---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/391/files#r23541761
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20150126/d19c1be0/attachment.html>


More information about the mlpack-git mailing list