private void btnOptimize_Click(object sender, EventArgs e)
        {
            this.Hide();
            Form frm = new FrmOptimize();

            frm.Show();
            this.Close();
        }
예제 #2
0
        private void btnView_Optimize_ItemClick(object sender, ItemClickEventArgs e)
        {
            GRBLinExpr func = (GRBLinExpr)MyGlobals.model.GetObjective();

            if (func.Size != 0)
            {
                Form frm = new FrmOptimize();
                frm.Show();
            }
            else
            {
                MessageBox.Show("Your Objective Function is not initialized. \nPlease build your model.");
            }
        }