I am trying to assign material property using multiple variables. For example; density and conductivity are two decision variables for material_1, material_2 and material_3.
I have to input the following information:
density of material_1 = 1000
density of material_2 = 2000
density of material_3 = 1500
conductivity of material_1 = 250
conductivity of material_2 = 400
conductivity of material_3 = 100
The standard format for defining variables in Pyomo is given below:
model.variable_1 = Var(bounds=(800,2000))
The above code means variable_1 is a variable with lower bound = 800, and upper bound = 2000.
But how can we define a variable with a specific set of values instead of a bound?
The idea is to input data values into the optimizer such that when it chooses a density value, it should also choose the conductivity value from the same material.
How can we impose such a condition into pyomo framework? Can someone please help me with this?