Search found 12 matches

by ManT
2 years ago
Forum: Modeling
Topic: Algebra eror in my formulation
Replies: 0
Views: 1333

Algebra eror in my formulation

Hi, I am struggling with a formation with my attached GAMS code. I would like to compute the voltage at the sending end of a branch. I get an error when I solve: Line 126 is problem. V(i+1)^2 = V(i)^2 - 2 (resistance * Pflow_line + reactance *Qflow_line); My code is attached ForGamsHelpIEEE33Bus.gms...
by ManT
3 years ago
Forum: Syntax
Topic: Use $ondelim and $offdelim to include a csv file cont multi-dimensional (dimension >2) table
Replies: 1
Views: 2771

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
3 years ago
Forum: Modeling
Topic: Optimal restoration path problem - Infeasible solution
Replies: 2
Views: 3403

Re: Optimal restoration path problem - Infeasible solution

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

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
4 years ago
Forum: Syntax
Topic: Syntax Problem
Replies: 2
Views: 8684

Re: Syntax Problem

Brilliant. Thank you. I am eternally grateful.
by ManT
4 years ago
Forum: Syntax
Topic: Syntax Problem
Replies: 2
Views: 8684

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
4 years ago
Forum: Syntax
Topic: Element by Element Multplication in GAMS
Replies: 4
Views: 3287

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
4 years ago
Forum: Syntax
Topic: Element by Element Multplication in GAMS
Replies: 4
Views: 3287

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 297 times
by ManT
4 years ago
Forum: Modeling
Topic: Optimal restoration path problem - Infeasible solution
Replies: 2
Views: 3403

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
4 years ago
Forum: Modeling
Topic: Help with GAMS Error 140
Replies: 1
Views: 2355

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 335 times
140. I would be appreciated if I can get any assistance. My error comes from the last line of the code.