13 #ifndef MLPACK_CORE_OPTIMIZERS_SDP_LRSDP_HPP 14 #define MLPACK_CORE_OPTIMIZERS_SDP_LRSDP_HPP 22 namespace optimization {
29 template <
typename SDPType>
42 LRSDP(
const size_t numSparseConstraints,
43 const size_t numDenseConstraints,
44 const arma::mat& initialPoint);
54 LRSDP(
const SDPType& sdp,
55 const arma::mat& initialPoint);
63 double Optimize(arma::mat& coordinates);
66 const SDPType&
SDP()
const {
return function.
SDP(); }
68 SDPType&
SDP() {
return function.
SDP(); }
92 #include "lrsdp_impl.hpp" Linear algebra utility functions, generally performed on matrices or vectors.
The objective function that LRSDP is trying to optimize.
The core includes that mlpack expects; standard C++ includes and Armadillo.
const AugLagrangian< LRSDPFunction< SDPType > > & AugLag() const
Return the augmented Lagrangian object.
LRSDP is the implementation of Monteiro and Burer's formulation of low-rank semidefinite programs (LR...
LRSDPFunction< SDPType > & Function()
Modify the function to be optimized.
The AugLagrangian class implements the Augmented Lagrangian method of optimization.
LRSDP(const size_t numSparseConstraints, const size_t numDenseConstraints, const arma::mat &initialPoint)
Create an LRSDP to be optimized.
SDP()
Initialize this SDP to an empty state.
AugLagrangian< LRSDPFunction< SDPType > > augLag
The AugLagrangian object which will be used for optimization.
const SDPType & SDP() const
Return the SDP that will be solved.
SDPType & SDP()
Modify the SDP that will be solved.
AugLagrangian< LRSDPFunction< SDPType > > & AugLag()
Modify the augmented Lagrangian object.
double Optimize(arma::mat &coordinates)
Optimize the LRSDP and return the final objective value.
const LRSDPFunction< SDPType > & Function() const
Return the function to be optimized.