|
DSDP
|
Functions | |
| int | DSDPCreateLPCone (DSDP dsdp, LPCone *dspcone) |
| Create a new object for linear programs and scalar inequalities. More... | |
| int | LPConeCopyS (LPCone lpcone, double s[], int n) |
| Copy the variables s into the spedified array. More... | |
| int | LPConeGetDimension (LPCone lpcone, int *n) |
| Get the dimension is the number of variables x, which equals the number of slack variables s. More... | |
| int | LPConeGetXArray (LPCone lpcone, double *x[], int *n) |
| Get the array used to store the x variables. More... | |
| int | LPConeSetData (LPCone lpcone, int n, const int ik[], const int cols[], const double vals[]) |
| Set data into the LP cone. More... | |
| int | LPConeSetData2 (LPCone lpcone, int n, const int ik[], const int cols[], const double vals[]) |
| Set data A and into the LP cone. More... | |
| int | LPConeView (LPCone lpcone) |
| Print the data in the LP cone to the screen. More... | |
| int | LPConeView2 (LPCone lpcone) |
| Print the data in the LP cone to the screen. More... | |
Routines that create the LP cone object for linear inequalites, set the data, and provide access to the solutions.
In DSDP Standard Form a pure linear program is given by the following pair of problems.
![\[ \begin{array}{lllllllll}
\mbox{Maximize} & b^T y & & \mbox{such that} & A^T y & \leq c \\
\mbox{Minimize} & c^T x & & \mbox{such that} & A x & = b, & x \geq 0 \\
\end{array}
\]](form_59.png)
Slack variables 

LP data may be used in conjuction with semidefinite data.
| 0 | if successful |
Create a new object for linear programs and scalar inequalities.
| dsdp | the solver |
| *dspcone | new LP Cone object |
Definition at line 509 of file dsdplp.c.
Referenced by mexFunction(), and ReadSDPAFile().
| int LPConeCopyS | ( | LPCone | lpcone, |
| double | s[], | ||
| int | n | ||
| ) |
Copy the variables s into the spedified array.
| lpcone | LP Cone |
| s | array |
| n | the conic dimension and length of the array |
Definition at line 595 of file dsdplp.c.
Referenced by DSDPPrintSolution().
| int LPConeGetDimension | ( | LPCone | lpcone, |
| int * | n | ||
| ) |
Get the dimension is the number of variables x, which equals the number of slack variables s.
| lpcone | LP Cone |
| n | dimension |
Definition at line 616 of file dsdplp.c.
Referenced by DSDPPrintData().
| int LPConeGetXArray | ( | LPCone | lpcone, |
| double * | x[], | ||
| int * | n | ||
| ) |
Get the array used to store the x variables.
| lpcone | LP Cone |
| x | array of variables |
| n | the dimension of the cone and length of the array |
For example, after calling DSDPComputeX(),
Definition at line 556 of file dsdplp.c.
Referenced by DSDPPrintSolution().
| LPConeSetData | ( | LPCone | lpcone, |
| int | n, | ||
| const int | ik[], | ||
| const int | cols[], | ||
| const double | vals[] | ||
| ) |
Set data into the LP cone.
| lpcone | the LP cone |
| n | the number of inequalities |
| ik | the number of nonzeros in each column of the matrix |
| cols | array of column numbers |
| vals | array of LP data |
For example, consider the following problem in the form of (D):
![\[ \begin{array}{llllll}
\mbox{Maximize} & & y_1 & + & y_2 \\
\mbox{Subject to}
& & 4 y_1 & + & 2 y_2 & \leq 6 \\
& & 3 y_1 & + & 7 y_2 & \leq 10 \\
& & & & - y_2 & \leq 12 \\
\end{array}
\]](form_0.png)
In this example, there three inequalities, so the dimension of the x vector would be 3 and n=3. The input arrays would be as follows:
Definition at line 666 of file dsdplp.c.
Referenced by ReadSDPAFile().
| LPConeSetData2 | ( | LPCone | lpcone, |
| int | n, | ||
| const int | ik[], | ||
| const int | cols[], | ||
| const double | vals[] | ||
| ) |
Set data A and into the LP cone.
| lpcone | the LP cone |
| n | the number of inequalities |
| ik | the number of nonzeros in each column of the matrix |
| cols | array of column numbers in A |
| vals | array of nonzeros in A and c |
For example, consider the following problem in the form of (D):
![\[ \begin{array}{llllll}
\mbox{Maximize} & & y_1 & + & y_2 \\
\mbox{Subject to}
& & 4 y_1 & + & 2 y_2 & \leq 6 \\
& & 3 y_1 & + & 7 y_2 & \leq 10 \\
& & & & - y_2 & \leq 12 \\
\end{array}
\]](form_0.png)
Definition at line 717 of file dsdplp.c.
Referenced by mexFunction().
| LPConeView | ( | LPCone | lpcone | ) |
Print the data in the LP cone to the screen.
| lpcone | the LP cone |
Definition at line 1078 of file dsdplp.c.
Referenced by ReadSDPAFile().
| LPConeView2 | ( | LPCone | lpcone | ) |
Print the data in the LP cone to the screen.
| lpcone | the LP cone |
Definition at line 744 of file dsdplp.c.
Referenced by ReadSDPAFile().