Esempio n. 1
0
 private void FinalForm_Load(object sender, EventArgs e)
 {
     foreach (string item in SimplexInputCreator.CreateSolution())
     {
         listBox1.Items.Add(item);
     }
     for (int i = 0; i < SimplexInputCreator.result.Length; i++)
     {
         listBox2.Items.Add(string.Format("X[{0}]={1}", i + 1, SimplexInputCreator.result[i]));
     }
 }
Esempio n. 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            SimplexInputCreator.rowsCount      = Int32.Parse(numericUpDown1.Value.ToString());
            SimplexInputCreator.formsNeeded    = SimplexInputCreator.rowsCount;
            SimplexInputCreator.variablesСount = Int32.Parse(numericUpDown2.Value.ToString());
            SimplexInputCreator.AddSpace();
            SimplexInputCreator.minMax = comboBox1.Text;
            RowOne ro = new RowOne();

            ro.text = "F(x):";
            ro.b    = true;
            ShowNextForm(ro);
        }