Search found 11 matches

by ManT
2 months ago
Forum: Syntax
Topic: Use $ondelim and $offdelim to include a csv file cont multi-dimensional (dimension >2) table
Replies: 1
Views: 385

Re: Use $ondelim and $offdelim to include a csv file cont multi-dimensional (dimension >2) table

A solution has been provided for this problem:

It reads:

With ondelim, the entire data statement has to be comma separated, i.e. also the domain of the symbol.

Thank you, Fred
by ManT
2 months ago
Forum: Modeling
Topic: Optimal restoration path problem - Infeasible solution
Replies: 2
Views: 676

Re: Optimal restoration path problem - Infeasible solution

Many thanks, Renger for your advice. This problem has now been solved.
by ManT
2 months ago
Forum: Syntax
Topic: Use $ondelim and $offdelim to include a csv file cont multi-dimensional (dimension >2) table
Replies: 1
Views: 385

Use $ondelim and $offdelim to include a csv file cont multi-dimensional (dimension >2) table

HI, Whenever I try to use $ondelim and $offdelim to include a CSV file containing a multi-dimensional (dimension >2) table I get into trouble (error 445). I have read that the trick is to delay $ondelim in the following code: I need some help in imposing this trick on my problem. I still have errors...
by ManT
6 months ago
Forum: Syntax
Topic: Syntax Problem
Replies: 2
Views: 841

Re: Syntax Problem

Brilliant. Thank you. I am eternally grateful.
by ManT
6 months ago
Forum: Syntax
Topic: Syntax Problem
Replies: 2
Views: 841

Syntax Problem

Hello, I have a table: Table branch(l,n,np,*) branch characteristics X rating exist branchNum L1.n1.n2 0.0281 2.5 1 1 L2.n2.n3 0.0108 3.5 1 2 L3.n3.n4 0.0297 2.4 1 3 L4.n4.n5 0.0297 2.4 1 4 L5.n5.n1 0.0064 4 1 5 L6.n1.n4 0.0304 1.5 1 6; I have a binary variable x(l,t) I would like to make a summatio...
by ManT
7 months ago
Forum: Syntax
Topic: Element by Element Multplication in GAMS
Replies: 4
Views: 876

Re: Element by Element Multplication in GAMS

GamsAssitance_Fixed.gms Hi Works fine for me, when I run your code after correcting some non-related errors. But perhaps you are looking for something else. I attach the corrected version. Cheers RengerGamsAssitance.gms Many thanks for your quick response. I want to apologize for not explaining my ...
by ManT
7 months ago
Forum: Syntax
Topic: Element by Element Multplication in GAMS
Replies: 4
Views: 876

Element by Element Multplication in GAMS

Hi,

I need help with the correct syntax for element by element multiplication using GAMS. My shortcode is attached.
GamsAssitance.gms
(1.5 KiB) Downloaded 56 times
by ManT
8 months ago
Forum: Modeling
Topic: Optimal restoration path problem - Infeasible solution
Replies: 2
Views: 676

Optimal restoration path problem - Infeasible solution

Hi,

I have modelled the optimal restoration path problem in a 5bus network using AC-power flow formulation. This is modelled as a MINLP problem and solved with BONMIN solver.

My formulation yields an infeasible solution. Can anyone please help?

The gams code is attached.

Thank you.
by ManT
11 months ago
Forum: Modeling
Topic: Help with GAMS Error 140
Replies: 1
Views: 464

Help with GAMS Error 140

Hi
I have the following code and each time I execute I get the GAMS Error
test1123.gms
(1.81 KiB) Downloaded 53 times
140. I would be appreciated if I can get any assistance. My error comes from the last line of the code.
by ManT
1 year ago
Forum: Modeling
Topic: Newbie with GAMS
Replies: 3
Views: 924

Re: Newbie with GAMS

Many thanks for your corrections. I have fixed it. I still have an infeasible solution. See attached GAMS file. Any advice would be appreciated.