Logo Search packages:      
Sourcecode: dsdp version File versions  Download package

dsdplp.c File Reference


Detailed Description

Set linear inequalities in (D) and implement the DSDPCone operations.

Definition in file dsdplp.c.

#include "dsdpcone_impl.h"
#include "dsdpsys.h"
#include "dsdp5.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>

Go to the source code of this file.

Classes

struct  LPCone_C
struct  smatx

Defines

#define __FUNCT__   "LPConeView"
#define __FUNCT__   "SpRowMatView"
#define __FUNCT__   "SpRowMatDestroy"
#define __FUNCT__   "SpRowMatGetScaledRowVector"
#define __FUNCT__   "SpRowMatGetRowVector"
#define __FUNCT__   "SpRowMatMultTrans"
#define __FUNCT__   "SpRowMatMult"
#define __FUNCT__   "LPConeSetXVec"
#define __FUNCT__   "LPConeGetData"
#define __FUNCT__   "LPConeGetConstraint"
#define __FUNCT__   "LPConeView2"
#define __FUNCT__   "LPConeSetData2"
#define __FUNCT__   "LPConeSetData"
#define __FUNCT__   "LPConeScaleBarrier"
#define __FUNCT__   "LPConeGetDimension"
#define __FUNCT__   "LPConeCopyS"
#define __FUNCT__   "LPConeGetSArray"
#define __FUNCT__   "LPConeGetXArray"
#define __FUNCT__   "DSDPCreateLPCone"
#define __FUNCT__   "DSDPAddLP"
#define __FUNCT__   "LPConeOperationsInitialize"
#define __FUNCT__   "LPANorm2"
#define __FUNCT__   "LPConeMonitor"
#define __FUNCT__   "LPConeSparsity"
#define __FUNCT__   "LPConePotential"
#define __FUNCT__   "LPConeComputeMaxStepLength"
#define __FUNCT__   "LPConeInvertS"
#define __FUNCT__   "LPConeS"
#define __FUNCT__   "LPConeX"
#define __FUNCT__   "LPConeSetX"
#define __FUNCT__   "LPConeMultiply"
#define __FUNCT__   "LPConeHessian"
#define __FUNCT__   "LPConeHessian"
#define __FUNCT__   "LPComputeATY"
#define __FUNCT__   "LPComputeAX"
#define __FUNCT__   "LPConeSize"
#define __FUNCT__   "LPConeDestroy"
#define __FUNCT__   "LPConeSetUp2"
#define __FUNCT__   "LPConeSetUp"

Functions

static int checkvsparse (smatx *)
static int CreateSpRowMatWdata (int, int, const double[], const int[], const int[], smatx **)
int DSDPAddLP (DSDP dsdp, LPCone lpcone)
int DSDPCreateLPCone (DSDP dsdp, LPCone *dspcone)
 Create a new object for linear programs and scalar inequalities.
static int LPANorm2 (void *dcone, DSDPVec ANorm)
static int LPComputeATY (LPCone lpcone, DSDPVec Y, DSDPVec S)
static int LPComputeAX (LPCone lpcone, DSDPVec X, DSDPVec Y)
static int LPConeComputeMaxStepLength (void *dcone, DSDPVec DY, DSDPDualFactorMatrix flag, double *maxsteplength)
int LPConeCopyS (LPCone lpcone, double s[], int n)
 Copy the variables s into the spedified array.
static int LPConeDestroy (void *dcone)
int LPConeGetConstraint (LPCone lpcone, int column, DSDPVec W)
int LPConeGetData (LPCone lpcone, int vari, double vv[], int n)
 Get one column (or row) of the LP data.
int LPConeGetDimension (LPCone lpcone, int *n)
 Get the dimension is the number of variables x, which equals the number of slack variables s.
int LPConeGetSArray (LPCone lpcone, double *s[], int *n)
int LPConeGetXArray (LPCone lpcone, double *x[], int *n)
 Get the array used to store the x variables.
static int LPConeHessian (void *dcone, double mu, DSDPSchurMat M, DSDPVec vrhs1, DSDPVec vrhs2)
static int LPConeInvertS (void *dcone)
static int LPConeMonitor (void *dcone, int tag)
static int LPConeMultiply (void *dcone, double mu, DSDPVec vrow, DSDPVec vin, DSDPVec vout)
static int LPConeOperationsInitialize (struct DSDPCone_Ops *coneops)
static int LPConePotential (void *dcone, double *logobj, double *logdet)
static int LPConeRHS (void *dcone, double mu, DSDPVec vrow, DSDPVec vrhs1, DSDPVec vrhs2)
static int LPConeS (void *dcone, DSDPVec Y, DSDPDualFactorMatrix flag, DSDPTruth *psdefinite)
int LPConeScaleBarrier (LPCone lpcone, double muscale)
int LPConeSetData (LPCone lpcone, int n, const int ik[], const int cols[], const double vals[])
 Set data into the LP cone.
int LPConeSetData2 (LPCone lpcone, int n, const int ik[], const int cols[], const double vals[])
 Set data A and into the LP cone.
static int LPConeSetup (void *dcone, DSDPVec y)
static int LPConeSetup2 (void *dcone, DSDPVec Y, DSDPSchurMat M)
static int LPConeSetX (void *dcone, double mu, DSDPVec Y, DSDPVec DY)
int LPConeSetXVec (LPCone lpcone, double *xout, int n)
static int LPConeSize (void *dcone, double *n)
static int LPConeSparsity (void *dcone, int row, int *tnnz, int rnnz[], int m)
int LPConeView (LPCone lpcone)
 Print the data in the LP cone to the screen.
int LPConeView2 (LPCone lpcone)
 Print the data in the LP cone to the screen.
static int LPConeX (void *dcone, double mu, DSDPVec Y, DSDPVec DY, DSDPVec AX, double *tracexs)
static int SpRowIMultAdd (smatx *, int *, int, int *, int)
static int SpRowMatDestroy (smatx *)
static int SpRowMatGetRowVector (smatx *M, int row, double r[], int m)
static int SpRowMatGetRowVector (smatx *, int, double *, int)
static int SpRowMatGetScaledRowVector (smatx *M, int row, const double ss[], double r[], int m)
static int SpRowMatGetScaledRowVector (smatx *, int, const double[], double *, int)
static int SpRowMatMult (smatx *, const double[], int, double[], int)
static int SpRowMatMultTrans (smatx *, const double[], int, double[], int)
static int SpRowMatNorm2 (smatx *, int, double *)
static int SpRowMatRowNnz (smatx *, int, int *, int)
static int SpRowMatView (smatx *)
static int vsdot (const int ja[], const double an[], int nn0, const double vv[], int n, double *vdot)
static int vsdot (const int *, const double *, int, const double *, int, double *)

Variables

static struct DSDPCone_Ops kops
static const char * lpconename = "LP Cone"


Generated by  Doxygen 1.6.0   Back to index