Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Tutorial Code Snippet doesn't work without user modifications #452

Open
Realife-Brahmin opened this issue Jan 21, 2024 · 1 comment

Comments

@Realife-Brahmin
Copy link

Realife-Brahmin commented Jan 21, 2024

Describe the bug
The very first code snippet in Getting Started (Quick Start Guide) doesn't work without the user having to specify/work-from the package directory.

Minimum Viable Example
Running this:

using PowerModelsDistribution
using Ipopt

solve_mc_opf("case3_unbalanced.dss", ACPUPowerModel, Ipopt.Optimizer) 
# a preface to the snippet says that the case file is in ./test/data/, 
# but even that should be (if a user has to specify the exact address) ./test/data/opendss/

Case file cannot be found.
image

Expected behavior
The case file should be detected by the command solve_mc_opf (and then solved)

System Information (please complete the following information):

  • OS: Windows 11
  • Version: PowerModelsDistribution v0.15.1, Ipopt v1.5.1

Additional context
As a first time user, I'd like to be able to run the very first tutorial code snippet seamlessly.

@Realife-Brahmin
Copy link
Author

Here's an MWE of a working code snippet for the same example.

using PowerModelsDistribution
using Ipopt

pkgdir = dirname(dirname(pathof(PowerModelsDistribution)));
casefolder = joinpath(pkgdir, "test", "data", "opendss");
casename = "case3_unbalanced.dss";
casefile = joinpath(casefolder, casename);
solve_mc_opf(casefile, ACPUPowerModel, Ipopt.Optimizer);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant