Search found 7 matches

by sachinpatel_03
4 months ago
Forum: Modeling
Topic: problem in Printing Optcr
Replies: 2
Views: 223

Re: problem in Printing Optcr

Hello Michael,

Thank you it solved the issue.

I can do a lot more now with this approach. I didn't know about it.

Thank you.
by sachinpatel_03
4 months ago
Forum: Modeling
Topic: problem in Printing Optcr
Replies: 2
Views: 223

problem in Printing Optcr

Hello,

I'm solving a scenario problem and I need to store the value of optcr associated with every scenario solution in the excel file.

I tried using

PUT 'OG',loop (scn, PUT optcr)PUT/;

but it gave an error 140

Error 140 in......
Unknowm sysmbol



Please help.
by sachinpatel_03
10 months ago
Forum: Modeling
Topic: Error 149, Uncontrolled set entered as constant
Replies: 6
Views: 1436

Re: Error 149, Uncontrolled set entered as constant

Hi Steve,

Thank you so much...

Yes, you understood my problem completely and perfectly. I'll take a look at the example in gamslib and will post the progress here for your acknowledgement.

once again thank you.
by sachinpatel_03
10 months ago
Forum: Modeling
Topic: Error 149, Uncontrolled set entered as constant
Replies: 6
Views: 1436

Re: Error 149, Uncontrolled set entered as constant

Hi, Thanks for checking it up. The code is running but I'm not able to reproduce the result. Basically I'd say my code is still not working as whatever changes I'm making into loop with $ conditions and if statements the code is giving me the same output every time which is different from the actual...
by sachinpatel_03
1 year ago
Forum: Modeling
Topic: Error 149, Uncontrolled set entered as constant
Replies: 6
Views: 1436

Re: Error 149, Uncontrolled set entered as constant

Hello Chintan, yes, it removed the error but I'm still stuck with the loop. As I want to do it for the scn (one increment at a time). for looping I'm doing like.... Model test /all/; OPTION MIP = CPLEX; OPTION optcr=1; OPTION limrow=0; OPTION reslim=72000; Solve test using MIP maximizing OF; FILE Re...
by sachinpatel_03
1 year ago
Forum: Modeling
Topic: Error 149, Uncontrolled set entered as constant
Replies: 6
Views: 1436

Error 149, Uncontrolled set entered as constant

hi, I want to use values of a 2D parameter by applying a loop in such a way that for every run of the loop, the values of only one set is changing while the value of other set is constant during a single run and changes with an increment of 1 when the loop starts again. eg. in a [168X99] matrix the ...
by sachinpatel_03
1 year ago
Forum: Modeling
Topic: Error 495 and Error 141 : Load Dimensions are different and symbol declared but no values have been assigned
Replies: 1
Views: 330

Error 495 and Error 141 : Load Dimensions are different and symbol declared but no values have been assigned

Hello I'm having problem in running my code. I'm using data from the excel sheet and having errors. please help I've been stuck on this for two weeks now. $call gdxxrw.exe i=Messer_data_MP.xlsx output=Calendar.gdx set=t rng=Calendar!A11:A754 rdim=1 set=scn rng=Calendar!B759:CV760 cdim=1 par=ECONCOST...