12 December 2015 0 4K Report

Hello all,

There are 3 models that I run iteratively by using proper outputs. However, at one point, I get "mixing mistach environment" error.  The code is basicly as below:

//model1

..

main{

generate & solve model1

call model2

model1.output_x=model2.input_x

generate & solve model2

call model3

model2.output_y=model3.input_y

generate & solve model3

}

While generating of model3, mismatch enviroment error is occur. However, model 2 and model 3 are similar.

At model 3, here's the constraint that I think causes this problem:

totalcost (dvar of model 3)-epsilon(variable of model 3)

Similar questions and discussions