Search found 8 matches

by shih
1 year ago
Forum: Syntax
Topic: model solve status in conditional statement
Replies: 7
Views: 3564

Re: model solve status in conditional statement

Got it and thanks Michael!

Shih
by shih
1 year ago
Forum: Syntax
Topic: Linearization of Non-Linear equations
Replies: 8
Views: 8205

Re: Linearization of Non-Linear equations

Thanks Manassaldi for your comments! Shih
by shih
1 year ago
Forum: Syntax
Topic: model solve status in conditional statement
Replies: 7
Views: 3564

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
by shih
1 year ago
Forum: Syntax
Topic: model solve status in conditional statement
Replies: 7
Views: 3564

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'...
by shih
1 year ago
Forum: Syntax
Topic: Linearization of Non-Linear equations
Replies: 8
Views: 8205

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!!!
by shih
1 year ago
Forum: Syntax
Topic: Linearization of Non-Linear equations
Replies: 8
Views: 8205

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 ...
by shih
1 year ago
Forum: Syntax
Topic: Command line Keyword in the gams script
Replies: 4
Views: 4762

Re: Command line Keyword in the gams script

Thanks Fred! It is very helpful!
by shih
1 year ago
Forum: Syntax
Topic: Command line Keyword in the gams script
Replies: 4
Views: 4762

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: ...