Skip to content

v0.5.1

Latest

Choose a tag to compare

@qian-harvard qian-harvard released this 12 Nov 22:26
3510a88

Bug-fix release. 0.5.1 is 0.5.0 plus one PSS/E fix. Every user of the PSS/E server (powermcp[psse]) on a full PSS/E license should upgrade.

PSS/E: the engine started at 1,000 buses (#154)

The PSS/E server started its engine with psseinit(50), as if 50 selected a PSS/E 35+ "bus mode". The argument is actually the bus capacity, and 50 is the limit of the free PSS/E Xplore edition, so on a full license the engine started at PSS/E's 1,000-bus minimum.

Opening a saved case (open_case, psspy.case) grows the engine by itself, which hid the problem. Reading a RAW file did not. On PSS/E 36.2, the 1,648-bus bench.raw example loaded only 1,000 buses and still returned ierr=0. The size can't be raised later in the same process: a second psseinit is ignored, and bus_size_level reports the new size without growing the engine.

  • The server now calls psseinit(0), which starts the engine at the bus size set in the PSS/E GUI (50,000 unless changed).
  • For larger cases, set the new optional psse.bus_size key, for example powermcp config set psse.bus_size 150000, or the POWERMCP_PSSE_BUS_SIZE environment variable. A value that isn't a whole number is refused before PSS/E starts.

Upgrade with pip install -U powermcp, then restart your MCP client so the PSS/E server restarts.