Search found 13 matches

by linkho
4 months ago
Forum: Tools
Topic: If then statement in Macro
Replies: 2
Views: 287

Re: If then statement in Macro

Realy thanks!
by linkho
4 months ago
Forum: API
Topic: Using Heuristic algorithm in GAMS
Replies: 2
Views: 304

Re: Using Heuristic algorithm in GAMS

Hi Michael as always many thanks!
by linkho
4 months ago
Forum: API
Topic: Using Heuristic algorithm in GAMS
Replies: 2
Views: 304

Using Heuristic algorithm in GAMS

Hi all, Does anyone have an example of implementation of Heuristic Algorithm (e.g. GA or SA) in GAMS?

is it possible to run a GA or SA MATLAB code in GAMS code?
How to use meta heuristic (GA) MATLAB code in GAMS?



Many Thanks!
by linkho
4 months ago
Forum: Tools
Topic: If then statement in Macro
Replies: 2
Views: 287

If then statement in Macro

Hi all


I have binary parameter b(j) , j/1*100/ . I need to change the element of b (change 1 to 0 and 0 to 1 ) to get new parameter c(j). I want to use macro option, is it possible?
Thanks!
by linkho
5 months ago
Forum: Archive Google Group
Topic: Is there standard normal cumulative distribution function in GAMS?
Replies: 2
Views: 549

Is there standard normal cumulative distribution function in GAMS?

Hi all, I want to code the following formula in GAMS, R(i)= Phi.[beta*Log10(M(i)/W*D)] Where 'Phi' is a standard normal cumulative distribution function. Scalar beta=0.34, W=70, D=41; Parameter M(i)/1 375, 2 450, 3 876,4 212,5 125/; I didn't find standard normal cumulative distribution function in G...
by linkho
5 months ago
Forum: Archive Google Group
Topic: How can I make this set?
Replies: 2
Views: 313

Re: How can I make this set?

Thanks so much !
by linkho
5 months ago
Forum: Archive Google Group
Topic: How can I make this set?
Replies: 2
Views: 313

How can I make this set?

Hi, let s be a index of scenario and j index of Network Nodes.(s={1*200} , j={1*100}) d(s,j)= total impacts of contamination scenario s, if the contaminant is first detected by scenario at j. W(s)=the subset of Network Nodes which d(s,j)<>0. W'(s)= the subset of W(s) such that d(s,j)<>d(s,j') , for ...
by linkho
11 months ago
Forum: Archive Google Group
Topic: what does ' access violation at address' mean?
Replies: 2
Views: 4560

what does ' access violation at address' mean?

Hi,

What is the meaning of this error?
When I receive this error, the program does not work anymore, And everything completely stops.

How can I fix this error?

I Attached screenshot of my error .

Thanks & Best
Linkho