Got it and thanks Michael!
Shih
Search found 8 matches
- 1 year ago
- Forum: Syntax
- Topic: model solve status in conditional statement
- Replies: 7
- Views: 4623
- 1 year ago
- Forum: Syntax
- Topic: Linearization of Non-Linear equations
- Replies: 8
- Views: 13654
Re: Linearization of Non-Linear equations
Thanks Manassaldi for your comments! Shih
- 1 year ago
- Forum: Syntax
- Topic: model solve status in conditional statement
- Replies: 7
- Views: 4623
Re: model solve status in conditional statement
Thanks Michael. But I only want to export the file when the solution is optimal. Is there a way of doing it? Thanks. Shih
- 1 year ago
- Forum: Syntax
- Topic: model solve status in conditional statement
- Replies: 7
- Views: 4623
Re: model solve status in conditional statement
Hi, I want to write results to an external .csv file, but only in the case where the solution is optimal. These are the commands I used: Solve mymodel min objvar using nlp ; if(mymodel.modelstat eq %modelstat.Optimal% and model.solveStat eq %solveStat.Normal Completion%, execute_unload 'results.gdx'...
- 1 year ago
- Forum: Syntax
- Topic: Linearization of Non-Linear equations
- Replies: 8
- Views: 13654
Re: Linearization of Non-Linear equations
I'm currently continuing my work on finding a suitable nonlinear solver as I've discovered that although one of them is effective for certain datasets, it doesn't work for all of them. Thanks Michael for the helpful advice!!!
- 1 year ago
- Forum: Syntax
- Topic: Linearization of Non-Linear equations
- Replies: 8
- Views: 13654
Re: Linearization of Non-Linear equations
Dear Experts: I have an extremely nonlinear constraint like following: Ttargetgap(t).. (V25(t)*T25(t)+V35(t)*T35(t)) - Ttarget(t) * (V25(t)+V35(t)) =E= Ttarget_p(t) * (V25(t) + V35(t)) - Ttarget_n(t) * (V25(t) + V35(t)) ; In the constraint, only Ttarget(t) is a given/known parameter. All others are ...
- 1 year ago
- Forum: Syntax
- Topic: Command line Keyword in the gams script
- Replies: 4
- Views: 5438
Re: Command line Keyword in the gams script
Thanks Fred! It is very helpful!
- 1 year ago
- Forum: Syntax
- Topic: Command line Keyword in the gams script
- Replies: 4
- Views: 5438
Re: Command line Keyword in the gams script
Hi, I have a similar question about the correct syntax for passing double dash parameter value from command line to the main program. For example, I am executing this command $call gams test_doubledash.gms --month = July I am passing "July" to the main program. In the main program I have: ...