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. 
ÿþThis email communication is 
privileged, confidential or otherwise

protected by disclosure and is intended 
only for the individuals or

entities named above and any others who 
have been specifically authorized

to receive it. Any unauthorized 
dissemination, copying or use of the

contents of this email is strictly 
prohibited and may be in violation of

law. If you are not the intended 
recipient, please do not read, copy, 
use

or disclose to others the contents of 
this communication. Please notify the

sender that you have received this 
e-mail in error by replying to this

e-mail or by phoning +1-212-583-5000 
Monday to Friday between 7:30 am and

7:30 pm (EST). At any other time, 
please call +1-212-583-5221. Please 
then

delete the e-mail from your system and 
any copies of it. Nothing contained

in this disclaimer shall be construed 
in any way to grant permission to

transmit confidential information via 
this firm's e-mail system or as a

waiver of any confidentiality or 
privilege.

 

This communication may contain highly 
confidential information regarding

Blackstone's investments, strategy and 
organization. Your acceptance of

this communication from Blackstone 
constitutes your agreement to (i) keep

confidential all the confidential 
information contained in this

communication, as well as any 
information derived by you from the

confidential information contained in 
this communication (collectively,

"Confidential Information") and not 
disclose any such Confidential

Information to any other person, (ii) 
not use any of the Confidential

Information for any purpose other than 
pursuant to your relationship with

Blackstone, (iii) not use the 
Confidential Information for purposes 
of

trading any security, including, 
without limitation, securities of

Blackstone or its portfolio companies, 
(iv) not copy any Confidential

Information without Blackstone's prior 
consent and (v) promptly return any

Confidential Information contained in 
this communication to Blackstone upon

Blackstone's request.

 

This communication is for informational 
purposes only and does not

constitute an offer to sell or a 
solicitation of an offer to purchase 
any

interest in any investment vehicles 
managed by any business unit of The

Blackstone Group. Blackstone does not 
accept any responsibility or

liability arising from the use of this 
communication. No representation is

being made that the information 
presented is accurate, current or 
complete,

and such information is at all times 
subject to change without notice.

Opinions expressed may differ or be 
contrary to the opinions and

recommendations of a Blackstone 
business unit. 

 

Blackstone does not provide legal, 
accounting or tax advice. Any statement

regarding legal, accounting or tax 
matters was written in connection with

the explanation of the matters 
described herein and was not intended 
or

written to be relied upon by any person 
as definitive advice. Any

discussion of U.S. tax matters 
contained within this communication is 
not

intended to be used and cannot be used 
for the purpose of avoiding

penalties that may be imposed under 
applicable Federal, state or local tax

law or recommending to another party 
any transaction or matter addressed

herein. Each person should seek advice 
based on its particular

circumstances from independent legal, 
accounting and tax advisors regarding

the matters discussed in this e-mail.
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to