VERSION 5.00
Begin VB.Form frm1 
   BackColor       =   &H00FFFFFF&
   Caption         =   "Оптимизация"
   ClientHeight    =   1380
   ClientLeft      =   4140
   ClientTop       =   3450
   ClientWidth     =   2910
   BeginProperty Font 
      Name            =   "MS Sans Serif"
      Size            =   12
      Charset         =   204
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   LinkTopic       =   "Form1"
   ScaleHeight     =   1380
   ScaleWidth      =   2910
   Begin VB.CommandButton cmd1 
      Caption         =   "Оптимизация"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   492
      Left            =   720
      TabIndex        =   0
      Top             =   720
      Width           =   1452
   End
End
Attribute VB_Name = "frm1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmd1_Click()
For X1 = 0 To 10
For X2 = 0 To 10
For X3 = 0 To 10
If 3 * X1 + 2 * X2 + 1 * X3 = 15 And 1 * X1 + 2 * X2 + 4 * X3 = 15 Then _
Print "Параметры: "; X1; X2; X3: Print "Целевая функция:  "; X1 + X2 + X3
Next X3
Next X2
Next X1
End Sub
