Originally posted by: SystemAdmin
[pmarley2 said:]
Hi,
I have another question about CPLEX.
I have a decision variable (dvar), called Take[][], that is a two-dim array, each of whose elements can be 0 or 1. That is, part of my reported solutions will report the values of each element in Take.
The structure of the problem is the following: I have 4 energy providers who will provide energy over 4 hours, and I am deciding which providers to engage in such a combination that I minimize the total expense (since each provider submits a bid as to what the price of its energy is). So Take[][] is a 4x4 array, with four rows for the four suppliers, and four columns for the number of hours.
I want to set the first column of the dvar Take[][] to all zeros, so that none of the providers are selected in the first hour. Is it possible to do this for a decision variable before the objective function is shown in my code, and if so, what is the syntax I have to use?
Thanks,
Piku
#CPLEXOptimizers#DecisionOptimization