PFNET C Library Documentation

Welcome! This is the documentation for the C library PFNET version 1.3.5, last updated Dec 27, 2019.

What is PFNET?

PFNET is a library for modeling and analyzing electric power networks. It provides data parsers, network analysis and manipulation routines, and fast and customizable constraint and objective function evaluators for constructing network optimization problems.

License

PFNET is released under the BSD 2-clause license.

Interfaces

Contents

Getting Started

Download

The latest version of PFNET can be obtained from https://github.com/ttinoco/PFNET.

Installation

Linux and macOS

Installing PFNET on Linux or macOS requires typing the following commands in the root directory of the library:

./autogen.sh
./configure --prefix=$PWD/build
make
make check
make install

For executing the command ./autogen.sh, Autotools is needed (m4, automake, autoconf, autoconf-archive, etc).

Windows

Installation PFNET on Windows requires Cmake and MinGW, and typing the following commands in the root directory of the library:

cmake -DCMAKE_INSTALL_PREFIX=.\build -G"MinGW Makefiles" -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=TRUE .
mingw32-make -j
mingw32-make install

Indices and tables