YANE-Framework Tutorial 1.1.0

examples/linearequation/src/Problems/electricalnetwork.h

00001 /***************************************************************************
00002  *                                                                         *
00003  * Copyright (C) 2011 by www.nonlinearmpc.com                              *
00004  *                                                                         *
00005  * Authors:                                                                *
00006  *  Juergen Pannek <juergen.pannek@googlemail.com>                         *
00007  *                                                                         *
00008  ***************************************************************************/
00009 
00010 #ifndef _ELECTRICALNETWORK_
00011 #define _ELECTRICALNETWORK_
00012 
00013 #include <iomanip>
00014 #include <iostream>
00015 #include <cmath>
00016 #include <cstdlib>
00017 
00018 #include "linearequationproblem.h"
00019 
00020 namespace yane
00021 {
00022         namespace EqSys
00023         {
00024                 class ElectricalNetwork : public LinearEquationProblem
00025                 {
00026                         public:
00027                                 ElectricalNetwork ( void );
00028                                 ~ElectricalNetwork ( void );
00029 
00030                         protected:
00031                                 void setupMatrix ( int N = 0 );
00032                                 void setupVector ( int N = 0 );
00033 
00034                         private:
00035                                 int _N;
00036                 };
00037         }
00038 }
00039 
00040 #endif