-/* $Id$ */
-
/* A few tests for the maxmin library */
-/* Copyright (c) 2004 Arnaud Legrand. All rights reserved. */
+/* Copyright (c) 2007, 2008, 2009, 2010. The SimGrid Team.
+ * All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
typedef enum {
MAXMIN,
- SDP,
LAGRANGE_RENO,
LAGRANGE_VEGAS,
} method_t;
if (method == MAXMIN) {
lmm_solve(Sys);
-#ifdef HAVE_SDP
- } else if (method == SDP) {
- sdp_solve(Sys);
-#endif
} else if (method == LAGRANGE_VEGAS) {
double x = 3 * a / 4 - 3 * b / 8 +
sqrt(9 * b * b + 4 * a * a - 4 * a * b) / 8;
if (method == MAXMIN) {
lmm_solve(Sys);
-#ifdef HAVE_SDP
- } else if (method == SDP) {
- sdp_solve(Sys);
-#endif
} else if (method == LAGRANGE_VEGAS) {
lagrange_solve(Sys);
} else if (method == LAGRANGE_RENO) {
if (method == MAXMIN) {
lmm_solve(Sys);
-#ifdef HAVE_SDP
- } else if (method == SDP) {
- sdp_solve(Sys);
-#endif
} else if (method == LAGRANGE_VEGAS) {
lagrange_solve(Sys);
} else if (method == LAGRANGE_RENO) {
INFO0("***** Test 1 (Max-Min)");
test1(MAXMIN);
-#ifdef HAVE_SDP
- INFO0("***** Test 1 (SDP)");
- test1(SDP);
-#endif
INFO0("***** Test 1 (Lagrange - Vegas)");
test1(LAGRANGE_VEGAS);
INFO0("***** Test 1 (Lagrange - Reno)");
INFO0("***** Test 2 (Max-Min)");
test2(MAXMIN);
-#ifdef HAVE_SDP
- INFO0("***** Test 2 (SDP)");
- test2(SDP);
-#endif
INFO0("***** Test 2 (Lagrange - Vegas)");
test2(LAGRANGE_VEGAS);
INFO0("***** Test 2 (Lagrange - Reno)");
INFO0("***** Test 3 (Max-Min)");
test3(MAXMIN);
-#ifdef HAVE_SDP
- INFO0("***** Test 3 (SDP)");
- test3(SDP);
-#endif
INFO0("***** Test 3 (Lagrange - Vegas)");
test3(LAGRANGE_VEGAS);
INFO0("***** Test 3 (Lagrange - Reno)");