C# Class SwarmNLP.MainForm

Inheritance: System.Windows.Forms.Form
Datei anzeigen Open project: swax/SwarmNLP Class Usage Examples

Public Methods

Method Description
MainForm ( ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
AddBug ( ) : void
BitmapToGraph ( float bmpX, float bmpY, float best, float mins, float maxs ) : float[]
CompileConstraint ( string constraint, int dims ) : MethodResults
CompileConstraints ( List constraints, int dims ) : MethodResults
CompileFunction ( string code, int dims ) : MethodResults
CompileProblem ( ) : void
FillCode ( string code, int dims ) : string
GenerateBackground ( ) : void

An intense function because it runs the objective function for every pixel That's why it's not done often, and in a different thread

GraphtoWindow ( float graph ) : Point
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

IsFeasible ( float x, float v ) : bool
MainDisplay_MouseMove ( object sender, MouseEventArgs e ) : void
MainDisplay_Paint ( object sender, PaintEventArgs e ) : void
MainForm_FormClosing ( object sender, FormClosingEventArgs e ) : void
MainForm_Load ( object sender, EventArgs e ) : void
MainForm_Resize ( object sender, EventArgs e ) : void
NonDominatesPoint ( float test, float best ) : bool
NonDominatesSet ( float testCoord, float testValue ) : bool
ObjCombo_SelectedIndexChanged ( object sender, EventArgs e ) : void
OpenButton_Click ( object sender, EventArgs e ) : void
PlayButton_Click ( object sender, EventArgs e ) : void
ProblemButton_Click ( object sender, EventArgs e ) : void
RefreshAxisCombos ( ) : void
ResetDimensions ( int objectives ) : void
ResetVect ( float &vect, int dims, int defaultVal ) : void
RunSwarm ( ) : void
SaveButton_Click ( object sender, EventArgs e ) : void
StatusBarUpdate ( ) : void
StepButton_Click ( object sender, EventArgs e ) : void
StopButton_Click ( object sender, EventArgs e ) : void
SwarmButton_Click ( object sender, EventArgs e ) : void
TryGetFeasible ( float pos ) : bool
WindowButton_Click ( object sender, EventArgs e ) : void
xAxisCombo_SelectedIndexChanged ( object sender, EventArgs e ) : void
yAxisCombo_SelectedIndexChanged ( object sender, EventArgs e ) : void

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

MainForm() public method

public MainForm ( ) : System
return System