
The three R source files contain the following:

- optimization_models.R: includes two R functions, paper_tune and
paper_tune_pos implementin the models (GP-1) and (GP-2), respectively.
The two functions use the lpSolve package to solve the goal programming 
optimization problems. The functions take the following inputs:
	- heat_paper: the fuzzy relation, with rows corresponding to factors, 
	  and columns to characteristics
	- setting: specifies for every characteristics the required change (1: increase, 
	  2: decrease, 3: do not change, 4: do not care)
	- cost: the cost of changing a factor (two values for every factor:
	  the cost of increase and the cost of decrease)
	- B: the total budget available to change the values of factors
	- lower and upper: specific to the possibilistic model, defines 
	  the two endpoints of the support of the triangular fuzzy numbers 
	  (with the values in heat_paper as the centers)
        - eta: the confidence parameter (in this implementation we use a common 
	  parameter for all the constraints)

- server.R and ui.R: the R scripts used to create the shiny web application. 
They use the above specified functions with a simple user interface. The use requires 
the shiny package. The application can be started locally by placing both files in a 
subfolder (e.g. "Paper_app") of a working folder, and then using the following command:
	runApp("Paper_app")