Hello
after attending ZICE2014, I tried using your EGDST implementation. I cannot execute a single example file, though. Since I am illiterate in C, I need some help...
I am using Matlab 2013b and MS SDK 7.1. as a compiler, which seems to work. After running init_setup/test.m I get the following:
Test mex function was successfully created!
Number of inputs: 0
Number of outputs: 0
Compiled on Feb 26 2014 17:22:47
^^^^^^ check for OpenMP message
Mex is configured properly!
Once running any example file out of egdst_examples via start.m, I receive the following compilation error:
Warning: File not found or permission denied
In model_cake1 at 5
Deleting directory tmp_cake1_fee87a84505f4fd4a8c745d5601f9eea
Writing .c and .h files:
Creating directory tmp_cake1_06bec6855538400e9cfddf61837ce6d9
Done in 0.050s
Utility contains brackes with +/- inside. For the analysis of additive separability the original expression it was transformed to:
log[consumption]
Compiler flags: -DDISTRIB=2 -DTOLERANCE=1e-10 -DZEROCONSUMPTION=1e-10 -DDOUBLEPOINT_DELTA=1e-10 -DVERBOSE=0
Compiling egdst_solver.cmodelspec.c
modelspec.c(12) : error C2099: initializer is not a constant
modelspec.c(16) : error C2099: initializer is not a constant
modelspec.c(20) : error C2099: initializer is not a constant
modelspec.c(25) : error C2099: initializer is not a constant
modelspec.c(29) : error C2099: initializer is not a constant
modelspec.c(39) : error C2099: initializer is not a constant
modelspec.c(43) : error C2099: initializer is not a constant
modelspec.c(47) : error C2099: initializer is not a constant
modelspec.c(48) : error C2099: initializer is not a constant
modelspec.c(52) : error C2099: initializer is not a constant
modelspec.c(53) : error C2099: initializer is not a constant
modelspec.c(58) : error C2099: initializer is not a constant
C:\PROGRA~1\MATLAB\R2013B\BIN\MEX.PL: Error: Compile of 'modelspec.c' failed.
Looking into the created c-file, every line that creates an error assigns some static double to -infinity which creates C2099. One example line looks like:
static double cash=-INFINITY; /for compatability with eq type=current/
Is there a problem with my compiler? I'd be grateful for any help!
Thanks a lot
Florian