SCIP-SDP  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
relax_sdp.h File Reference

SDP relaxator. More...

Go to the source code of this file.

Functions

EXTERN SCIP_RETCODE SCIPincludeRelaxSdp (SCIP *scip)
 
EXTERN SCIP_RETCODE SCIPrelaxSdpGetPrimalBoundVars (SCIP_RELAX *relax, SCIP_Real *lbvars, SCIP_Real *ubvars, int *arraylength)
 
EXTERN SCIP_RETCODE SCIPrelaxSdpRelaxVal (SCIP_RELAX *relax, SCIP_Bool *success, SCIP_Real *objval)
 
EXTERN SCIP_RETCODE SCIPrelaxSdpGetRelaxSol (SCIP *scip, SCIP_RELAX *relax, SCIP_Bool *success, SCIP_Real *solarray, int *sollength)
 
EXTERN long int SCIPrelaxSdpGetSdpNode (SCIP_RELAX *relax)
 
EXTERN SCIP_Bool SCIPrelaxSdpSolvedOrig (SCIP_RELAX *relax)
 
EXTERN int SCIPrelaxSdpGetNIterations (SCIP_RELAX *relax)
 
EXTERN int SCIPrelaxSdpGetNSdpCalls (SCIP_RELAX *relax)
 

Detailed Description

SDP relaxator.

Author
Sonja Mars
Tristan Gally

Definition in file relax_sdp.h.

Function Documentation

EXTERN SCIP_RETCODE SCIPincludeRelaxSdp ( SCIP *  scip)

creates the SDP relaxator and includes it in SCIP

Parameters
scipSCIP data structure

Definition at line 964 of file relax_sdp.c.

References DEFAULT_OBJLIMIT, DEFAULT_SDPSOLVEREPSILON, DEFAULT_SDPSOLVERFEASTOL, RELAX_DESC, RELAX_FREQ, RELAX_NAME, RELAX_PRIORITY, SCIPsdpiCreate(), SCIPsdpiGetSolverDesc(), and SCIPsdpiGetSolverName().

Referenced by runSCIP(), and SCIP_DECL_RELAXCOPY().

EXTERN SCIP_RETCODE SCIPrelaxSdpGetPrimalBoundVars ( SCIP_RELAX *  relax,
SCIP_Real *  lbvars,
SCIP_Real *  ubvars,
int *  arraylength 
)

gets the primal variables corresponding to the lower and upper variable-bounds in the dual problem

The last input should specify the length of the arrays. If this is less than the number of variables, the needed length will be returned and a debug message thrown.

Note
if a variable is either fixed or unbounded in the dual problem, a zero will be returned for the non-existent primal variable.
Parameters
relaxSDP relaxator to information for
lbvarspointer to store the values of the variables corresponding to lower bounds in the dual problems
ubvarspointer to store the values of the variables corresponding to upper bounds in the dual problems
arraylengthinput: length of lbvars and ubvars
output: number of elements inserted into lbvars/ubvars (or needed length if it wasn't sufficient)

Definition at line 1025 of file relax_sdp.c.

References SCIPsdpiGetPrimalBoundVars().

Referenced by SCIP_DECL_PROPEXEC().

EXTERN SCIP_RETCODE SCIPrelaxSdpRelaxVal ( SCIP_RELAX *  relax,
SCIP_Bool *  success,
SCIP_Real *  objval 
)

returns optimal objective value of the current SDP relaxation, if the last SDP relaxation was successfully solved

Parameters
relaxSDP relaxator to get objective value for
successpointer to store whether the last SDP relaxation solved successfully
objvalpointer to store the optimal objective value of the SDP relaxation

Definition at line 1050 of file relax_sdp.c.

Referenced by SCIP_DECL_PROPEXEC().

EXTERN SCIP_RETCODE SCIPrelaxSdpGetRelaxSol ( SCIP *  scip,
SCIP_RELAX *  relax,
SCIP_Bool *  success,
SCIP_Real *  solarray,
int *  sollength 
)

returns values of all variables in the solution of the current SDP relaxation, if the last SDP relaxation was successfully solved

Parameters
scipSCIP pointer
relaxSDP relaxator to get solution for
successpointer to store whether the last SDP relaxation solved successfully
solarraypointer to store the solution, this has to be at least length nvars
sollengthlength of the solarray

Definition at line 1072 of file relax_sdp.c.

References SCIPsdpiGetSol().

EXTERN long int SCIPrelaxSdpGetSdpNode ( SCIP_RELAX *  relax)

get the number of the SCIP-node to which the current SDP solution belongs

Parameters
relaxSDP relaxator to get solution for

Definition at line 1103 of file relax_sdp.c.

Referenced by SCIP_DECL_PROPEXEC().

EXTERN SCIP_Bool SCIPrelaxSdpSolvedOrig ( SCIP_RELAX *  relax)

was the original problem solved for the last SDP-Node (or a penalty formulation) ?

Parameters
relaxSDP relaxator to get solution for

Definition at line 1114 of file relax_sdp.c.

References SCIPsdpiSolvedOrig().

Referenced by SCIP_DECL_PROPEXEC().

EXTERN int SCIPrelaxSdpGetNIterations ( SCIP_RELAX *  relax)

returns total number of SDP iterations

Parameters
relaxSDP relaxator to get the iterations for

Definition at line 1131 of file relax_sdp.c.

Referenced by SCIP_DECL_DISPOUTPUT().

EXTERN int SCIPrelaxSdpGetNSdpCalls ( SCIP_RELAX *  relax)

returns number of solved SDP relaxations

Parameters
relaxSDP relaxator to get the number of calls for

Definition at line 1142 of file relax_sdp.c.

Referenced by SCIP_DECL_DISPOUTPUT().