Hi, The following works fine:
> f [1] 0.08 0.03 0.04 > A2 [,1] [,2] [,3] [1,] 0.000000e+00 0.0000000000 0.000000e+00 [2,] 0.000000e+00 0.0000000000 0.000000e+00 [3,] 2.999651e-03 0.0009094342 1.945708e-03 [4,] 4.124431e-05 0.0001360390 1.203345e-05 [5,] 3.027932e-04 0.0000412920 4.668090e-04 [6,] 0.000000e+00 0.0000000000 0.000000e+00 > b2 [1] 0 0 0 0 0 0 > C2 [,1] [,2] [,3] [1,] 0.1 0.4 -0.30 [2,] -0.3 -0.1 -0.15 [3,] 0.0 0.0 0.00 [4,] -1.0 -1.0 -1.00 > d2 [1] 0.4 -0.2 0.1 1.0 > N2 [1] 1 1 3 1 > fit <- socp(f, A2, b2, C2, d2, N2) > fit $x [1] -61.99911 35.28410 27.71243 $z [1] 0.000000000 0.000000000 0.000000000 27.753033887 -0.715260932 [6] -0.005912403 $w [1] 2.692738e-02 6.166071e-17 2.776225e+01 5.912403e-03 $iter [1] 500 $hist [1] 0 $convergence [1] FALSE $info [1] 4 $message [1] "Maximum iterations (4)" > However, when I add conditions that the x variables must be positive, I get an error: > f [1] 0.08 0.03 0.04 > A3 [,1] [,2] [,3] [1,] 0.000000e+00 0.0000000000 0.000000e+00 [2,] 0.000000e+00 0.0000000000 0.000000e+00 [3,] 2.999651e-03 0.0009094342 1.945708e-03 [4,] 4.124431e-05 0.0001360390 1.203345e-05 [5,] 3.027932e-04 0.0000412920 4.668090e-04 [6,] 0.000000e+00 0.0000000000 0.000000e+00 [7,] 0.000000e+00 0.0000000000 0.000000e+00 [8,] 0.000000e+00 0.0000000000 0.000000e+00 [9,] 0.000000e+00 0.0000000000 0.000000e+00 > b3 [1] 0 0 0 0 0 0 0 0 0 > C3 [,1] [,2] [,3] [1,] 0.1 0.4 -0.30 [2,] -0.3 -0.1 -0.15 [3,] 0.0 0.0 0.00 [4,] -1.0 -1.0 -1.00 [5,] 1.0 0.0 0.00 [6,] 0.0 1.0 0.00 [7,] 0.0 0.0 1.00 > d3 [1] 0.4 -0.2 0.1 1.0 0.0 0.0 0.0 > N3 [1] 1 1 3 1 1 1 1 > fit <- socp(f, A3, b3, C3, d3, N3) Error in .socp.phase1(f, A, b, N, control) : Phase 1 failed, alpha>=0 I'm having trouble interpreting this error message. It seems to me that the problem is the initial point is infeasible, but I may be wrong here. If I am right, I'm not sure why it is infeasible given that I have only added a few simple conditions. Any thoughts? Thanks a bunch, Ryan -------------------------------------------------------------------------- Please open the following attachment for important information regarding this e-mail communication.
ÿþT h i s e m a i l c o m m u n i c a t i o n i s p r i v i l e g e d , c o n f i d e n t i a l o r o t h e r w i s e p r o t e c t e d b y d i s c l o s u r e a n d i s i n t e n d e d o n l y f o r t h e i n d i v i d u a l s o r e n t i t i e s n a m e d a b o v e a n d a n y o t h e r s w h o h a v e b e e n s p e c i f i c a l l y a u t h o r i z e d t o r e c e i v e i t . A n y u n a u t h o r i z e d d i s s e m i n a t i o n , c o p y i n g o r u s e o f t h e c o n t e n t s o f t h i s e m a i l i s s t r i c t l y p r o h i b i t e d a n d m a y b e i n v i o l a t i o n o f l a w . I f y o u a r e n o t t h e i n t e n d e d r e c i p i e n t , p l e a s e d o n o t r e a d , c o p y , u s e o r d i s c l o s e t o o t h e r s t h e c o n t e n t s o f t h i s c o m m u n i c a t i o n . P l e a s e n o t i f y t h e s e n d e r t h a t y o u h a v e r e c e i v e d t h i s e - m a i l i n e r r o r b y r e p l y i n g t o t h i s e - m a i l o r b y p h o n i n g + 1 - 2 1 2 - 5 8 3 - 5 0 0 0 M o n d a y t o F r i d a y b e t w e e n 7 : 3 0 a m a n d 7 : 3 0 p m ( E S T ) . A t a n y o t h e r t i m e , p l e a s e c a l l + 1 - 2 1 2 - 5 8 3 - 5 2 2 1 . P l e a s e t h e n d e l e t e t h e e - m a i l f r o m y o u r s y s t e m a n d a n y c o p i e s o f i t . N o t h i n g c o n t a i n e d i n t h i s d i s c l a i m e r s h a l l b e c o n s t r u e d i n a n y w a y t o g r a n t p e r m i s s i o n t o t r a n s m i t c o n f i d e n t i a l i n f o r m a t i o n v i a t h i s f i r m ' s e - m a i l s y s t e m o r a s a w a i v e r o f a n y c o n f i d e n t i a l i t y o r p r i v i l e g e . T h i s c o m m u n i c a t i o n m a y c o n t a i n h i g h l y c o n f i d e n t i a l i n f o r m a t i o n r e g a r d i n g B l a c k s t o n e ' s i n v e s t m e n t s , s t r a t e g y a n d o r g a n i z a t i o n . Y o u r a c c e p t a n c e o f t h i s c o m m u n i c a t i o n f r o m B l a c k s t o n e c o n s t i t u t e s y o u r a g r e e m e n t t o ( i ) k e e p c o n f i d e n t i a l a l l t h e c o n f i d e n t i a l i n f o r m a t i o n c o n t a i n e d i n t h i s c o m m u n i c a t i o n , a s w e l l a s a n y i n f o r m a t i o n d e r i v e d b y y o u f r o m t h e c o n f i d e n t i a l i n f o r m a t i o n c o n t a i n e d i n t h i s c o m m u n i c a t i o n ( c o l l e c t i v e l y , "