Error: Index was out of range...

Issue #25 closed
Mehmet Kalfazade created an issue

I have this error message when i tried to run the model. I tried to change simulation and data dates but couldnt figure it out what is the problem.

Comments (5)

  1. Bob Lounsbury

    Just an FYI, I've been working through this issue. We converted all the code from VB.net to C# and it appears some bits were lost in translation. I've resolved all the index out of range exception errors and am getting close to a solution. Hope to have this resolved today.

  2. Bob Lounsbury

    Another FYI, you need a sink node at the end of every MODSIM network. Otherwise, you'll always get an infeasible solution as there is no flow path.

  3. Bob Lounsbury

    That's correct, the sink node will not fix this issue for you, it's just something that is needed in every MODSIM model.

    This issue has been fixed for the next release. You could try version 8.4.0 or 8.3.2, I think your network might run in one of those versions. The problem is you won't be able to open your existing network in an older version of MODSIM. So, you would have to recreate the network in that version. If you're going to recreate the network, then I would recommend starting with 8.3.2. Since you can always load an older network into a newer MODSIM version. So build the network in 8.3.2 and keep a saved 8.3.2 version. You can run it in 8.3.2, and/or open the network in 8.4.0 and run it in that version.

    There are no workarounds for this issue. We should be releasing a new version in a couple weeks if you can wait.

  4. Log in to comment