Solving the division by zero problem

Problems with modeling
Post Reply
Yehuda
User
User
Posts: 8
Joined: 1 year ago

Solving the division by zero problem

Post by Yehuda » 2 months ago

Hi all,

My model contains, by definition, division by zero possibilities.
In a nutshell, the model needs to decide how much water to transfer in a pipeline network. The pipeline network includes some pipes which the model can decide not to use.
Due to some other equations, the model confronts the division by zero problem, by not using pipelines.

I would like to know if someone dealt with this problem and has a solution that is both simple and effective.

Thank you,

Yehuda

Job
User
User
Posts: 6
Joined: 1 year ago

Re: Solving the division by zero problem

Post by Job » 2 months ago

You can use manual means of dealing with the problem by ensuring that no variable is absolute zero, like making them 0.0000001.

Yehuda
User
User
Posts: 8
Joined: 1 year ago

Re: Solving the division by zero problem

Post by Yehuda » 1 month ago

Thank you, Job.

I already tried your suggestion but it causes me other problems.
I thought that there is a simple solution to my problem, but it seems there isn't.

Anyway, thanks for your response.

Yehuda

Post Reply