Copyright (C) 2008-2012 Delft University of Technology - All rights reserved. Author: Reijer Idema Use and modification of this software is allowed for educational and research purposes only. Commercial use in source or binary form, with or without modification, is prohibited unless the user has obtained explicit written permission from the copyright holder. Redistribution of this code and any derived software, in source or binary form, must retain the above copyright notice, this agreement, and the below disclaimer. Publications containing results that were obtained with the use of this software, with or without modification, have to credit the author by including at least the following two references: (1) R. Idema, D.J.P. Lahaye, C. Vuik, and L. van der Sluis, Scalable Newton-Krylov solver for very large power flow problems. IEEE Transactions on Power Systems, Volume 27, Number 1, February 2012. (2) R. Idema, G. Papaefthymiou, D.J.P. Lahaye, C. Vuik, and L. van der Sluis, Towards faster solution of large power flow problems. IEEE Transactions on Power Systems, Volume 28, Number 4, November 2013. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.