Function MathOpt::compConvSize

Function Documentation

void MathOpt::compConvSize(arma::sp_mat &A, unsigned int nFinCons, unsigned int nFinVar, const std::vector<arma::sp_mat*> *Ai, const std::vector<arma::vec*> *bi, const arma::sp_mat &Acom, const arma::vec &bcom)

Generates the matrix “A” in MathOpt::convexHull using batch insertion constructors. Motivation behind this: Response from armadillo:-https://gitlab.com/conradsnicta/armadillo-code/issues/111.

Parameters
  • A – The output matrix a

  • nFinCons – Number of rows in final matrix A

  • nFinVar – Number of columns in the final matrix A

  • Ai – Input inequality constraints LHSs defining the polyhedra whose convex hull is to be found

  • bi – Input inequality RHSs defining the polyhedra whose convex hull is to be found

  • Acom – LHS of the common constraints for all polyhedra

  • bcom – RHS of the common constraints for all polyhedra