Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/RPP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ using namespace arma;

CPS* rpp(mat x0, mat P, mat mrc, CTRL& ctrl){
// Initializing objects
int ne = P.n_cols;
unsigned int ne = P.n_cols;
int n = ne + 1;
// Constraints
CONEC cList, cEpi;
Expand All @@ -20,9 +20,9 @@ CPS* rpp(mat x0, mat P, mat mrc, CTRL& ctrl){
cList.G.insert_rows(0, 1);
cList.G(0, ne) = -1.0;
cList.h.zeros(n, 1);
cList.dims << 1 << ne << endr;
cList.sidx << 0 << 0 << endr
<< 1 << ne << endr;
cList.dims = { 1, ne };
cList.sidx = { { 0, 0 },
{ 1, ne } };
cList.K = 2;
cList.n = n;
// Primal dual variables
Expand Down