⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 my_realisation.h

📁 The realization of Simplex Method. It can be very useful for students. But there is only one problem
💻 H
字号:
//---------------------------------------------------------------------------
#include <vcl.h>
#include <Grids.hpp>
//---------------------------------------------------------------------------

#include "Simplex.h"
//---------------------------------------------------------------------------

#pragma hdrstop
//---------------------------------------------------------------------------

class Rational
{
 public:
	Rational ();
	Rational (long int x, long int y);
	Rational inv ();
	friend Rational operator - (Rational a, Rational b);
	friend Rational operator + (Rational a, Rational b);
	friend Rational operator * (Rational a, Rational b);
	friend Rational operator / (Rational a, Rational b);
        bool operator > (Rational b);
        bool operator < (Rational b);
        bool operator <= (long int b);
        bool operator == (Rational b);
        bool operator == (long int b);
        bool operator != (Rational b);
        bool operator != (long int b);
        Rational operator = (Rational R);
        void Print(int i, int j);
        void Show ();
 private:
	long int NOD (long int x, long int y);
	void Abbr ();
 private:
	long int p, q;
	int sign;
};
//---------------------------------------------------------------------------

class RazrElement {
 public:
	RazrElement ();
        Rational Element;
        int xPosition;
        int yPosition;
};
//---------------------------------------------------------------------------

class SimReal {
 public:
	SimReal ();
        void GetValues (int x, int y);
        void FindBasis ();
        void GetSigma ();
        bool CheckSigmaIDX (int IDX);
        void Conversion();
        void ZFValue();
        void Print();
 private:
	Rational **Field_1;
        Rational **Field_2;
        Rational *Z_Function;
        Rational *Sigma;
        Rational *Basis;
        Rational ZFV;
 private:
        int SRx,SRy;
        RazrElement RE;
};
//---------------------------------------------------------------------------

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -