Blame view

src/constraints/maximize.h 1.29 KB
94b2b13d   Pedro Roque   PHACT source
1
2
3
4
/*
 * maximize.h
 *
 *  Created on: 30/01/2017
4d26a735   Pedro Roque   Increased recogni...
5
 *      Author: pedro
94b2b13d   Pedro Roque   PHACT source
6
7
8
9
10
 */

#ifndef SRC_CONSTRAINTS_MAXIMIZE_H_
#define SRC_CONSTRAINTS_MAXIMIZE_H_

94b2b13d   Pedro Roque   PHACT source
11
12
13
14
15
16
17
18
19
20
21

#include <stdbool.h>
#include <sys/types.h>

#include "../config.h"
#include "../constraints.h"
#include "../kernels/cl_aux_functions.h"
#include "../kernels/cl_constraints.h"
#include "../kernels/cl_ttl.h"

unsigned int c_maximize(unsigned int var_to_opt_id);
4d26a735   Pedro Roque   Increased recogni...
22
unsigned int c_maximize_reif(unsigned int var_to_opt_id, int reif_v_id);
94b2b13d   Pedro Roque   PHACT source
23
24
bool maximize_check(constr* c, bool explored);

4d26a735   Pedro Roque   Increased recogni...
25
#if CS_MAXIMIZE == 1
94b2b13d   Pedro Roque   PHACT source
26
void maximize_prop(CL_MEMORY VARS_PROP* vs_prop_, CL_MEMORY unsigned short* vs_id_to_prop_, __global unsigned int* val_to_opt, bool* prop_ok TTL_CTR);
4d26a735   Pedro Roque   Increased recogni...
27
28
29
#if CS_R_MAXIMIZE == 1
void maximize_reif(CL_MEMORY VARS_PROP* vs_prop_, CL_CS_MEM cl_constr* current_cs, CL_MEMORY unsigned short* vs_id_to_prop_,
		__global unsigned int* val_to_opt TTL_CTR);
94b2b13d   Pedro Roque   PHACT source
30
void maximize_prop_opposite(CL_MEMORY VARS_PROP* vs_prop_, CL_MEMORY unsigned short* vs_id_to_prop_, __global unsigned int* val_to_opt, bool* prop_ok TTL_CTR);
4d26a735   Pedro Roque   Increased recogni...
31
32
#endif
void maximize_propagate(CL_MEMORY VARS_PROP* vs_prop_, CL_CS_MEM cl_constr* current_cs, CL_MEMORY unsigned short* vs_id_to_prop_,
94b2b13d   Pedro Roque   PHACT source
33
34
35
		__global unsigned int* val_to_opt_g, bool* prop_ok PROPAGATED_FUNC TTL_CTR);
#endif