Hello.
I am writing to know if it is possible to create a parameter which value depends from the value of a variable. I'd like to have a parameter referred to a prduct j which value is 1 if the variable referred to product j is 1, if the variable is 2 the parameter value should be 10, if the variable is 3 the parameter value should be 100 and so on.
Briefly, in my problem the variable counts how many time a product j is produced in a given span of days.
The objective function aims to minimize the total cost production, but also to minimize the number of times each product is produced in the given span of days (I prefer two products produced only one time, instead of one product produced two times and a product not produced. Again I prefer two products produced two times intead of one product produced four times and another product not produced at all. Each product must be produced as little as possible).
I thought to insert in the objective function a sort of penalty based on a parameter that is higher and higher if the product j is produced more than one time.
Thank you in advice for any suggestion.