Socp {parma}R Documentation

Second-order Cone Programming

Description

The function solves second-order cone problem by primal-dual interior point method. It is a wrapper function to the C-routines written by Lobo, Vandenberghe and Boyd (see reference below).

Usage

Socp(f, A, b, C, d, N,
     x = NULL, z = NULL, w = NULL, control = list())

Arguments

f

Vector defining linear objective, length(f)==length(x)

A

Matrix with the AiA_i vertically stacked: A=[A1;A2;;AL]A = [ A_1; A_2; \ldots; A_L].

b

Vector with the bib_i vertically stacked: b=[b1;b2;;bL]b = [ b_1; b_2; \ldots; b_L].

C

Matrix with the cic_i' vertically stacked: C=[c1;c2;;cL]C = [ c_1'; c_2'; \ldots; c_L'].

d

Vector with the did_i vertically stacked: d=[d1;d2;;dL]d = [ d_1; d_2; \ldots; d_L].

N

Vector of size L, defining the size of each constraint.

x

Primal feasible initial point. Must satisfy: Aix+bi<cix+di|| A_i*x + b_i || < c_i' * x + d_i for i=1,,Li = 1, \ldots, L.

z

Dual feasible initial point.

w

Dual feasible initial point.

control

A list of control parameters.

Details

The primal formulation of an SOCP is given as:

minimisefxminimise f' * x

subject to

Aix+bi<=cix+di||A_i*x + b_i|| <= c_i' * x + d_i

for i=1,,Li = 1,\ldots, L. Here, xx is the (n×1)(n \times 1) vector to be optimised. The dual form of an SOCP is expressed as:

maximisei=1L(bzi+diwi)maximise \sum_{i = 1}^L -(b' * z_i + d_i * w_i)

subject to

i=1L(Aizi+ciwi)=f\sum_{i = 1}^L (A_i' * z_i + c_i * w_i) = f

and

zi=wi||z_i || = w_i

for i=1,,Li = 1,\ldots, L, given strictly feasible primal and dual initial points.

The algorithm stops, if one of the following criteria is met:

  1. abs.tol – maximum absolute error in objective function; guarantees that for any x: abs(fxfx_opt)<=abs_tolabs(f'*x - f'*x\_opt) <= abs\_tol.

  2. rel.tol – maximum relative error in objective function; guarantees that for any x: abs(fxfx_opt)/(fx_opt)<=rel_tol(iffx_opt>0)abs(f'*x - f'*x\_opt)/(f'*x\_opt) <= rel\_tol (if f'*x\_opt > 0). Negative value has special meaning, see target next.

  3. target – if rel_tol<0rel\_tol<0, stops when fx<targetorbz>=targetf'*x < target or -b'*z >= target.

  4. max.iter – limit on number of algorithm outer iterations. Most problems can be solved in less than 50 iterations. Called with max_iter = 0 only checks feasibility of x and z, (and returns gap and deviation from centrality).

  5. The target value is reached. rel\_tol is negative and the primal objective pp is less than the target.

Value

A list-object with the following elements:

x

Solution to the primal problem.

z

Solution to the dual problem.

iter

Number of iterations performed.

hist

see out_mode in SocpControl.

convergence

A logical code. TRUE indicates successful convergence.

info

A numerical code. It indicates if the convergence was successful.

message

A character string giving any additional information returned by the optimiser.

Note

This function has been ported from the Rsocp package contained in the Rmetrics-Project on R-Forge. In contrast to the former implementation, allowance is made for specifying more than one cone constraint.

Author(s)

Bernhard Pfaff

References

Lobo, M. and Vandenberghe, L. and Boyd, S., SOCP: Software for Second-order Cone Programming, User's Guide, Beta Version, April 1997, Stanford University.

See Also

SocpPhase1, SocpPhase2, SocpControl


[Package parma version 1.7 Index]