R Under development (unstable) (2025-06-06 r88283 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # Test a simple example (Sanity check) > library(Rdsdp) > > # Sedumi format example > K=c() > K$s=c(2,3) > K$l=2 > > C=matrix(c(0,0,2,1,1,2,c(3,0,1, + 0,2,0, + 1,0,3)),1,15,byrow=TRUE) > A=matrix(c(0,1,0,0,0,0,c(3,0,1, + 0,4,0, + 1,0,5), + 1,0,3,1,1,3,rep(0,9)), 2,15,byrow=TRUE) > b <- c(1,2) > C=-C > > ret = dsdp(A,b,C,K) Iter PP Objective DD Objective PInfeas DInfeas Nu StepLength Pnrm --------------------------------------------------------------------------------------- 0 1.00000000e+10 -3.60077894e+11 3.2e+00 3.6e+03 3.6e+11 0.00 0.00 0.00 10 -2.49999819e+00 -2.50000023e+00 4.0e-21 0.0e+00 7.1e-08 1.00 0.04 26.62 12 -2.49999986e+00 -2.50000001e+00 3.2e-22 0.0e+00 3.3e-09 1.00 0.11 9.10 > stopifnot(all.equal(ret$y,c(-1.0,-0.75),tolerance=1e-05)) > > proc.time() user system elapsed 0.18 0.07 0.26