-/* Authors: Arnaud Legrand */
+/* $Id$ */
+
+/* Copyright (c) 2004 Arnaud Legrand. 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. */
+ * under the terms of the license (GNU LGPL) which comes with this package. */
#ifndef _SURF_MAXMIN_PRIVATE_H
#define _SURF_MAXMIN_PRIVATE_H
lmm_constraint_t constraint;
lmm_variable_t variable;
- xbt_maxmin_float_t value;
+ double value;
} s_lmm_element_t, *lmm_element_t;
#define insert_elem_in_constraint(elem) xbt_swag_insert(elem,&(elem->constraint->element_set))
#define insert_active_elem_in_constraint(elem) xbt_swag_insert(elem,&(elem->constraint->active_element_set))
s_xbt_swag_t element_set; /* a list of lmm_mat_element_t */
s_xbt_swag_t active_element_set; /* a list of lmm_mat_element_t */
- xbt_maxmin_float_t bound;
- xbt_maxmin_float_t remaining;
- xbt_maxmin_float_t usage;
- char *id;
+ double bound;
+ double remaining;
+ double usage;
+ void *id;
} s_lmm_constraint_t;
typedef struct lmm_variable {
s_lmm_element_t *cnsts;
int cnsts_size;
int cnsts_number;
- xbt_maxmin_float_t weight;
- xbt_maxmin_float_t bound;
- xbt_maxmin_float_t value;
- char *id;
+ double weight;
+ double bound;
+ double value;
+ void *id;
} s_lmm_variable_t;
typedef struct lmm_system {
+ int modified;
s_xbt_swag_t variable_set; /* a list of lmm_variable_t */
s_xbt_swag_t constraint_set; /* a list of lmm_constraint_t */