Originally posted by: gustavgans123
Hi,
I am trying to setup a constant of type float, which is defined by the product of two other float constants. For Example:
int m = ...; // number of maintenance task (m=4)
{int} M = asSet(0..m); // All maintenance tasks
int s = ...; // number of shifts (s =1)
{int} S = asSet(1..s); // all shifts in the planning period
float Tmt[M][S] = ...; //Duration of task m in M in hrs
float Ctmt[M][S] = ...; // costs per hr downtime of maintenance task M
float Clp[M][S] = Tmt[M][S] * Ctmt[M][S]; // the total costs maintenance task M
I get the error Tmt was not expected and / or operator * does not exist for float float
I attached data and model file.
Thank you for any help,
Gustav
#DecisionOptimization#OPLusingCPLEXOptimizer