How Can I Optimize Gas Network Operations in My Master Thesis?

  • Context: Graduate 
  • Thread starter Thread starter Fjolvar
  • Start date Start date
  • Tags Tags
    Master Pain Thesis
Click For Summary

Discussion Overview

The discussion revolves around optimizing gas network operations for a master's thesis, specifically focusing on simulating natural gas networks and determining an optimal method for increasing gas volume and pressure while adhering to minimum and maximum constraints. The participants explore mathematical approaches to model this optimization problem.

Discussion Character

  • Exploratory
  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant seeks to find a mathematical relation for a simulation model that satisfies specific constraints on gas volume and pressure, aiming for a curve that remains between defined maximum and minimum values.
  • Another participant suggests that "optimal" needs clarification regarding the criteria for evaluating different methods of increasing gas volume/pressure, proposing the use of polynomial fitting to average the maximum and minimum curves.
  • Concerns are raised about maintaining a curve with minimal fluctuations to avoid increased costs associated with gas supply, emphasizing the need for a "hill-like" function that is not too steep.
  • Questions arise about whether the problem involves a general algorithm for varying data sets or a specific instance, and the need for clarity on how to manipulate quadratic equations to meet the constraints.
  • Participants discuss the implications of symmetry in the curve and how it affects the feasibility of fitting between the minimum and maximum curves, with one participant expressing concerns about potential intersections with the upper boundary if the lower boundary has a small x-value.
  • There is a focus on the trade-offs between curve characteristics, such as symmetry, maximum height, and flatness, with one participant emphasizing that the symmetry is not critical, but maintaining equal amounts of increase and decrease is essential.
  • Another participant points out the lack of specified criteria for determining the superiority of one feasible solution over another, highlighting the need for a clear definition of trade-offs in the optimization process.

Areas of Agreement / Disagreement

Participants express differing views on the criteria for optimization and the characteristics of the desired curve. There is no consensus on the best approach or specific mathematical model to use, indicating ongoing debate and exploration of ideas.

Contextual Notes

Participants mention the need for specific data points and the implications of curve characteristics on the optimization problem, but the discussion remains unresolved regarding the exact mathematical formulation and criteria for optimization.

Fjolvar
Messages
156
Reaction score
0
Hello,

I have been working on my master thesis topic and have been struggling to find a solution to a particular problem. I was hoping someone here could at least shed some light and point me in the right direction. My thesis topic is simulating natural gas networks and my task is to find an optimal way of operating a gas transmission network.

As for the math related part, I'm trying to determine an optimal way of increasing gas volume/pressure steadily while taking into account the minimum and maximum constraints. I'll share a picture of the graph to help get a visual.

Basically, I'm trying to find a mathematical relation I can program into a simulation model that satisfies a curve similar to "case 2" in the picture. You can see in the graph that this function/curve must be above the "necesssary" curve's maximum point and below the "maximal" curve's lowest point, or rather the minimum and maximum gas volume constraints.

Hopefully this post isn't too long winded. I was first trying to work with a basic quadratic formula, since there is always a known y-intercept or starting point. But I'm not sure how to manipulate this formula so that it takes into account these min/max constraints. Any help would be very much appreciated. If you have any questions or need further explanation just let me know please. I thank anyone who can help in advance.
 

Attachments

  • IMG_1523.jpg
    IMG_1523.jpg
    14.1 KB · Views: 494
Last edited:
Physics news on Phys.org
Fjolvar said:
I'm trying to determine an optimal way of increasing gas volume/pressure steadily while taking into account the minimum and maximum constraints.

To explain what "optimal" means, you need to explain what criteria make one way of increasing the gas volumne/pressure better or worse than another way.

If you just want a curve between the max and the min curves, you could form a set of data points by taking the average of the max and min curves and then fitting a polynomial function to that data. If the fit is tight enough, it will be between the max and min curves.
 
Stephen Tashi said:
To explain what "optimal" means, you need to explain what criteria make one way of increasing the gas volumne/pressure better or worse than another way.

If you just want a curve between the max and the min curves, you could form a set of data points by taking the average of the max and min curves and then fitting a polynomial function to that data. If the fit is tight enough, it will be between the max and min curves.

The only criteria is to try and maintain the least amount of change in the curve, because the more it fluctuates and becomes non-uniform or if it has very high peaks, means supplying more gas, which should be avoided because of costs.
 
Last edited:
Any other ideas how to figure out what type of equation I could use to simply give a slight 'hill-like' function, not too steep, while considering maximum/minimum values? I tried simply using a quadratic form (y = ax^2 + bx + c ), but it seems rather complicated to me and maybe not possible to directly manipulate this equation to satisfy these max/min restrictions.
 
Your statement of the problem is unclear.

Are you trying to create a general algorithm whose input is a set of (x,y) data that defines two curves, or are you trying to solve a problem whose input only involves a single specific set of data defining two curves?

What you mean by "directly manipulate"? Do you know how to write the equation of a quadratic whose peak is at the given point (x_max, y_max) and which passes through another given point?
 
Stephen Tashi said:
Your statement of the problem is unclear.

Are you trying to create a general algorithm whose input is a set of (x,y) data that defines two curves, or are you trying to solve a problem whose input only involves a single specific set of data defining two curves?

What you mean by "directly manipulate"? Do you know how to write the equation of a quadratic whose peak is at the given point (x_max, y_max) and which passes through another given point?

Hi Stephen. Basically I'm given the two functions (set of data points) marked as "necessary" and "maximal" in the picture, which can change and take on different values. I'm trying to figure out a way to produce a third function "case 2" (no data points given) which is always in between the values of the two other functions as shown, no matter what these other values might be. The case 2 function must steadily increase so it's only slightly greater than the maximum point of the "necessary" function and then steadily decrease. The total amount increase of the function must equal the total decrease.

My experience with writing quadratic equations is very rust unfortunately, so I'm not sure if this would be a possible approach or not. I hope you can help point me in the right direction.
 
Last edited:
Be specific about the "givens" that you can provide for the quadratic function. For example, do you want a quadratic function that passes through the endpoints of the line segment from (x_0,y_min) to (x_1,y_min) and has a peak over the midpoint of that line segment at the point ( (x_0 + x_1)/2, y_max)?
 
Stephen Tashi said:
Be specific about the "givens" that you can provide for the quadratic function. For example, do you want a quadratic function that passes through the endpoints of the line segment from (x_0,y_min) to (x_1,y_min) and has a peak over the midpoint of that line segment at the point ( (x_0 + x_1)/2, y_max)?

I suppose a midpoint at point ( (x_0 + x_1)/2, y_max) would work in this situation, but my concern is if the maximum of the "necessary" function (lower boundary) occurs at a small x-value, would the 'case 2' function intersect the 'maximal' function (upper boundary). Because if the lower boundary function has a small x-value, then our 'case 2' function must have a very high slope and will increase significantly before it reaches point ( (x_0 + x_1)/2, y_max), therefore it may be optimal to have a maximum value at the same small x-value of the 'necessary' function and then slowly decrease until (x_1, y_min). This would result in an unsymmetrical curve though, so it couldn't be quadratic in that case. Does that make sense to you?
 
Fjolvar said:
Does that make sense to you?

It makes sense that a quadratic that was symmetric about the midpoint of the interval might need a higher peak than one that was not symmetric about the midpoint in order to fit it between the min and max curves. But you still haven't explained what would make one feasible solution better than another one. You haven't specified any trade-off between having a low max vs being symmetrical vs being nearly flat. There are many curves that have these properties. How do you decide if one is better than another?
 
  • #10
Stephen Tashi said:
It makes sense that a quadratic that was symmetric about the midpoint of the interval might need a higher peak than one that was not symmetric about the midpoint in order to fit it between the min and max curves. But you still haven't explained what would make one feasible solution better than another one. You haven't specified any trade-off between having a low max vs being symmetrical vs being nearly flat. There are many curves that have these properties. How do you decide if one is better than another?

The symmetry of the curve is not important in my case, only the amount increased must equal the amount decreased, which would result in different rates slopes for the increasing/decreasing portions of the curve, unless the maximum was exactly at ( (x_0 + x_1)/2, y_max), however in my case that will rarely occur.

The other criteria as mentioned before is having a low maximum point. Since this is for an energy network, with stores energy vs time, it is optimal to use low energy values or x-values, as long as it's consistently above the minimum constraint.

The feed-in of energy results with an increase in stored energy and the feed-out with a decrease. These amounts must be equal over the full span of the x-axis.

Abrupt changes of the Y-axis or quick fluctuations of energy is also to be avoided as it may cause instability in the network, but this is less important than the above criteria.

Does that help any?

In addition: I was looking at the behavior of different functions with the form -ax^3+bx+c, but I couldn't get it to satisfy the constraints because there is a conflict when trying to change the local maximum point of the curve with the x_min to x_max range, which is reduced, and I need this range to be constant, where as the beginning point of the curve is the same as the end.

Before this I was thinking about two different sine functions, integrating the first from 0 to pi/2 and the other from pi/2 to pi, with the second sine function sharing a point with the maximum of the first, but with a different slope, although it seems we would have the same problem with the x_min to x_max range..

I feel like I'm maybe making this more complicated than it has to be, or maybe it is just this complicated. Well I appreciate any help and taking the time to read all of this. It is really important and means a lot to me.
 
Last edited:
  • #11
I'm trying to find more info about regression models.. perhaps this is the right path? Can anyone suggest where I can find information on regression models that take into account min/max constraints?
 
Last edited:

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
17
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K