DSDP
Functions
dsdpsetup.c File Reference

Create DSDP solver and its data strucutures. More...

Go to the source code of this file.

Functions

int DSDPCallMonitors (DSDP dsdp, DMonitor dmonitor[], int ndmonitors)
 Call the monitor routines. More...
 
int DSDPCheckConvergence (DSDP dsdp, DSDPTerminationReason *reason)
 Check for convergence and monitor solution. More...
 
int DSDPComputeDataNorms (DSDP dsdp)
 Compute norms of A,C, and b. More...
 
int DSDPCreate (int m, DSDP *dsdpnew)
 Create a DSDP solver. FIRST DSDP routine! More...
 
int DSDPDestroy (DSDP dsdp)
 Free the internal data structures of the solver and the cones associated with it. More...
 
int DSDPGetConvergenceMonitor (DSDP dsdp, ConvergenceMonitor **ctx)
 Get the structure containing convergence parameters. More...
 
int DSDPScaleData (DSDP dsdp)
 Scale the matrix C. More...
 
int DSDPSetDefaultMonitors (DSDP dsdp)
 Set convergence monitor. More...
 
int DSDPSetDefaultParameters (DSDP dsdp)
 Set default parameters. More...
 
int DSDPSetDefaultStatistics (DSDP dsdp)
 Set default statistics. More...
 
int DSDPSetDestroyRoutine (DSDP dsdp, int(*fd)(void *), void *ctx)
 Set a routine that will be called during DSDPDestroy(). More...
 
int DSDPSetup (DSDP dsdp)
 Set up data structures in the solver and the cones associated with it. More...
 
int DSDPSolve (DSDP dsdp)
 Apply DSDP to the problem. More...
 
int DSDPTakeDown (DSDP dsdp)
 Destroy internal data structures. More...
 

Detailed Description

Create DSDP solver and its data strucutures.

Definition in file dsdpsetup.c.

Function Documentation

int DSDPCallMonitors ( DSDP  dsdp,
DMonitor  dmonitor[],
int  ndmonitors 
)

Call the monitor routines.

Parameters
dsdpsolver
dmonitorarray of monitors
ndmonitorsnumber of monitors.

Definition at line 367 of file dsdpsetup.c.

Referenced by DSDPCheckConvergence().

int DSDPCheckConvergence ( DSDP  dsdp,
DSDPTerminationReason reason 
)

Check for convergence and monitor solution.

Parameters
dsdpsolver
reasontermination reason

Definition at line 384 of file dsdpsetup.c.

Referenced by DSDPSolveDynamicRho().

int DSDPComputeDataNorms ( DSDP  dsdp)

Compute norms of A,C, and b.

Parameters
dsdpthe solver

Definition at line 283 of file dsdpsetup.c.

Referenced by DSDPGetDataNorms(), and DSDPSetup().

int DSDPGetConvergenceMonitor ( DSDP  dsdp,
ConvergenceMonitor **  ctx 
)

Get the structure containing convergence parameters.

Parameters
dsdpthe solver
*ctxwill point to the structure.
Note
This structure part of the DSDP structure.

Definition at line 268 of file dsdpsetup.c.

Referenced by DSDPGetDualBound(), DSDPGetGapHistory(), DSDPGetGapTolerance(), DSDPGetPNormTolerance(), DSDPGetRHistory(), DSDPGetStepTolerance(), DSDPSetDualBound(), DSDPSetGapTolerance(), DSDPSetPNormTolerance(), and DSDPSetStepTolerance().

int DSDPScaleData ( DSDP  dsdp)

Scale the matrix C.

Parameters
dsdpthe solver

Definition at line 311 of file dsdpsetup.c.

Referenced by DSDPSetup().

int DSDPSetDefaultMonitors ( DSDP  dsdp)

Set convergence monitor.

Parameters
dsdpthe solver

Definition at line 165 of file dsdpsetup.c.

Referenced by DSDPCreate().

int DSDPSetDefaultParameters ( DSDP  dsdp)

Set default parameters.

Parameters
dsdpthe solver

Definition at line 122 of file dsdpsetup.c.

Referenced by DSDPCreate().

int DSDPSetDefaultStatistics ( DSDP  dsdp)

Set default statistics.

Parameters
dsdpthe solver

Definition at line 84 of file dsdpsetup.c.

Referenced by DSDPCreate().

int DSDPSetDestroyRoutine ( DSDP  dsdp,
int(*)(void *)  fd,
void *  ctx 
)

Set a routine that will be called during DSDPDestroy().

Parameters
dsdpthe solver
fdfunction pointer
ctxpointer to structure.
See also
DSDPDestroy()

Definition at line 469 of file dsdpsetup.c.

int DSDPTakeDown ( DSDP  dsdp)

Destroy internal data structures.

Parameters
dsdpsolver

Definition at line 428 of file dsdpsetup.c.

Referenced by DSDPDestroy().