typedef enum {
MAXMIN,
SDP,
- LAGRANGE
+ LAGRANGE,
+ LAGRANGEDICO
} method_t;
void test1(method_t method);
#endif
else if(method==LAGRANGE)
lagrange_solve(Sys);
+ else if(method==LAGRANGEDICO)
+ lagrange_dicotomi_solve(Sys);
else
xbt_assert0(0,"Invalid method");
{
xbt_init(&argc,argv);
- DEBUG0("***** Test 1 (Max-Min) ***** \n");
- test1(MAXMIN);
+/* DEBUG0("***** Test 1 (Max-Min) ***** \n"); */
+/* test1(MAXMIN); */
#ifdef HAVE_SDP
DEBUG0("***** Test 1 (SDP) ***** \n");
test1(SDP);
#endif
- DEBUG0("***** Test 1 (Lagrange) ***** \n");
- test1(LAGRANGE);
+ DEBUG0("***** Test 1 (Lagrange - dicotomi) ***** \n");
+ test1(LAGRANGEDICO);
- DEBUG0("***** Test 2 (Max-Min) ***** \n");
- test2(MAXMIN);
-#ifdef HAVE_SDP
- DEBUG0("***** Test 2 (SDP) ***** \n");
- test2(SDP);
-#endif
- DEBUG0("***** Test 3 (Max-Min) ***** \n");
- test3(MAXMIN);
-#ifdef HAVE_SDP
- DEBUG0("***** Test 3 (SDP) ***** \n");
- test3(SDP);
-#endif
+/* DEBUG0("***** Test 2 (Max-Min) ***** \n"); */
+/* test2(MAXMIN); */
+/* #ifdef HAVE_SDP */
+/* DEBUG0("***** Test 2 (SDP) ***** \n"); */
+/* test2(SDP); */
+/* #endif */
+/* DEBUG0("***** Test 2 (Lagrange) ***** \n"); */
+/* test2(LAGRANGE); */
+
+
+
+/* DEBUG0("***** Test 3 (Max-Min) ***** \n"); */
+/* test3(MAXMIN); */
+/* #ifdef HAVE_SDP */
+/* DEBUG0("***** Test 3 (SDP) ***** \n"); */
+/* test3(SDP); */
+/* #endif */
+/* DEBUG0("***** Test 3 (Lagrange) ***** \n"); */
+/* test3(LAGRANGE); */
+
return 0;
}