Skip to content

Commit

Permalink
Add the OptimizationDemo project (simulator) + Analyzer VS solution
Browse files Browse the repository at this point in the history
  • Loading branch information
Erezinho committed Dec 20, 2019
1 parent 581cb91 commit 589f2ea
Show file tree
Hide file tree
Showing 17 changed files with 2,052 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Analyzer.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29609.76
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Analyzer", "Analyzer\Analyzer.vcxproj", "{29F70BCE-CE31-4424-9B19-B693DA9C1668}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "OptimizationDemo", "OptimizationDemo\OptimizationDemo.vcxproj", "{35901AA2-9709-414C-A298-263DF6AF50F2}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Release|Win32 = Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{29F70BCE-CE31-4424-9B19-B693DA9C1668}.Debug|Win32.ActiveCfg = Debug|Win32
{29F70BCE-CE31-4424-9B19-B693DA9C1668}.Debug|Win32.Build.0 = Debug|Win32
{29F70BCE-CE31-4424-9B19-B693DA9C1668}.Release|Win32.ActiveCfg = Release|Win32
{29F70BCE-CE31-4424-9B19-B693DA9C1668}.Release|Win32.Build.0 = Release|Win32
{35901AA2-9709-414C-A298-263DF6AF50F2}.Debug|Win32.ActiveCfg = Debug|Win32
{35901AA2-9709-414C-A298-263DF6AF50F2}.Debug|Win32.Build.0 = Debug|Win32
{35901AA2-9709-414C-A298-263DF6AF50F2}.Release|Win32.ActiveCfg = Release|Win32
{35901AA2-9709-414C-A298-263DF6AF50F2}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
78 changes: 78 additions & 0 deletions OptimizationDemo/OptimizationDemo.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
// OptimizationDemo.cpp : Defines the class behaviors for the application.
//

#include "stdafx.h"
#include "OptimizationDemo.h"
#include "OptimizationDemoDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// COptimizationDemoApp

BEGIN_MESSAGE_MAP(COptimizationDemoApp, CWinApp)
ON_COMMAND(ID_HELP, &CWinApp::OnHelp)
END_MESSAGE_MAP()


// COptimizationDemoApp construction

COptimizationDemoApp::COptimizationDemoApp()
{
// TODO: add construction code here,
// Place all significant initialization in InitInstance
}


// The one and only COptimizationDemoApp object

COptimizationDemoApp theApp;


// COptimizationDemoApp initialization

BOOL COptimizationDemoApp::InitInstance()
{
// InitCommonControlsEx() is required on Windows XP if an application
// manifest specifies use of ComCtl32.dll version 6 or later to enable
// visual styles. Otherwise, any window creation will fail.
INITCOMMONCONTROLSEX InitCtrls;
InitCtrls.dwSize = sizeof(InitCtrls);
// Set this to include all the common control classes you want to use
// in your application.
InitCtrls.dwICC = ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);

CWinApp::InitInstance();

AfxEnableControlContainer();

// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable, you should remove from the following
// the specific initialization routines you do not need
// Change the registry key under which our settings are stored
// TODO: You should modify this string to be something appropriate
// such as the name of your company or organization
SetRegistryKey(_T("Local AppWizard-Generated Applications"));

COptimizationDemoDlg dlg;
m_pMainWnd = &dlg;
INT_PTR nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
// dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
// dismissed with Cancel
}

// Since the dialog has been closed, return FALSE so that we exit the
// application, rather than start the application's message pump.
return FALSE;
}
31 changes: 31 additions & 0 deletions OptimizationDemo/OptimizationDemo.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// OptimizationDemo.h : main header file for the PROJECT_NAME application
//

#pragma once

#ifndef __AFXWIN_H__
#error "include 'stdafx.h' before including this file for PCH"
#endif

#include "resource.h" // main symbols


// COptimizationDemoApp:
// See OptimizationDemo.cpp for the implementation of this class
//

class COptimizationDemoApp : public CWinApp
{
public:
COptimizationDemoApp();

// Overrides
public:
virtual BOOL InitInstance();

// Implementation

DECLARE_MESSAGE_MAP()
};

extern COptimizationDemoApp theApp;
256 changes: 256 additions & 0 deletions OptimizationDemo/OptimizationDemo.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,256 @@
// Microsoft Visual C++ generated resource script.
//
#include "resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#ifndef APSTUDIO_INVOKED
#include "targetver.h"
#endif
#include "afxres.h"

/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// English (United States) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)

/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_ABOUTBOX DIALOGEX 0, 0, 170, 62
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About OptimizationDemo"
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
ICON IDR_MAINFRAME,IDC_STATIC,14,14,21,20
LTEXT "OptimizationDemo, Version 1.0",IDC_STATIC,42,14,114,8,SS_NOPREFIX
LTEXT "Copyright (C) 2010",IDC_STATIC,42,26,114,8
DEFPUSHBUTTON "OK",IDOK,113,41,50,14,WS_GROUP
END

IDD_OPTIMIZATIONDEMO_DIALOG DIALOGEX 1, 100, 328, 353
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_MINIMIZEBOX | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_APPWINDOW
CAPTION "OptimizationDemo"
MENU IDR_MENU1
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
EDITTEXT IDC_EDIT_TOTAL_ITERS,99,44,61,12,ES_AUTOHSCROLL | ES_NUMBER
EDITTEXT IDC_EDIT_IDC_PAR_ESTIM_NUM_PARAM,99,73,23,12,ES_AUTOHSCROLL | ES_NUMBER
CONTROL "Test Mode",IDC_CHECK1,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,229,19,49,10
CONTROL "Restricted\nRanges",IDC_CHECK_RESTRICTED_RANGES,"Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,229,44,85,16
DEFPUSHBUTTON "Start Optimization Demo",IDC_BUTTON_START_OPT_DEMO,47,102,105,25
PUSHBUTTON "Stop Optimization Demo",IDC_BUTTON_STOP_OPT_DEMO,177,102,104,24
PUSHBUTTON "OK",IDOK,209,332,50,14
PUSHBUTTON "Cancel",IDCANCEL,272,332,50,14
EDITTEXT IDC_EDIT_NUM_OF_ITERATIONS,99,151,130,14,ES_AUTOHSCROLL | ES_READONLY
LTEXT "Iterations so far:",IDC_STATIC,15,153,76,10
COMBOBOX IDC_COMBO_PROCESS_TYPE,99,19,120,12,CBS_DROPDOWN | CBS_SORT | WS_VSCROLL | WS_TABSTOP
LTEXT "Process Type:",IDC_STATIC,15,19,72,11
CONTROL "",IDC_LIST_GEN_VALUES,"SysListView32",LVS_REPORT | LVS_ALIGNLEFT | WS_BORDER | WS_TABSTOP,99,175,130,142
GROUPBOX "Input",IDC_STATIC,7,7,315,127
GROUPBOX "Output",IDC_STATIC,7,138,315,185
LTEXT "Generated Values:",IDC_STATIC,15,172,70,10
LTEXT "Number of iterations:",IDC_STATIC,15,44,72,10
LTEXT "Num of parameters\n(P. Estimation only)",IDC_STATIC34,15,73,66,19
CONTROL "4 clusters 2 parameters\n(Parameter Estimation only)",IDC_CHECK_FOUR_CLUSTERS_PE,
"Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,229,73,86,23
END


/////////////////////////////////////////////////////////////////////////////
//
// Version
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,0,1
PRODUCTVERSION 1,0,0,1
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
#else
FILEFLAGS 0x0L
#endif
FILEOS 0x4L
FILETYPE 0x1L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904e4"
BEGIN
VALUE "CompanyName", "TODO: <Company name>"
VALUE "FileDescription", "TODO: <File description>"
VALUE "FileVersion", "1.0.0.1"
VALUE "InternalName", "OptimizationDemo.exe"
VALUE "LegalCopyright", "TODO: (c) <Company name>. All rights reserved."
VALUE "OriginalFilename", "OptimizationDemo.exe"
VALUE "ProductName", "TODO: <Product name>"
VALUE "ProductVersion", "1.0.0.1"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1252
END
END


/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//

#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO
BEGIN
IDD_ABOUTBOX, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 163
TOPMARGIN, 7
BOTTOMMARGIN, 55
END

IDD_OPTIMIZATIONDEMO_DIALOG, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 322
VERTGUIDE, 15
VERTGUIDE, 99
VERTGUIDE, 160
VERTGUIDE, 187
VERTGUIDE, 229
VERTGUIDE, 243
TOPMARGIN, 7
BOTTOMMARGIN, 346
HORZGUIDE, 19
HORZGUIDE, 44
HORZGUIDE, 73
HORZGUIDE, 102
HORZGUIDE, 158
END
END
#endif // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// String Table
//

STRINGTABLE
BEGIN
IDS_ABOUTBOX "&About OptimizationDemo..."
END

#endif // English (United States) resources
/////////////////////////////////////////////////////////////////////////////


/////////////////////////////////////////////////////////////////////////////
// Hebrew (Israel) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_HEB)
LANGUAGE LANG_HEBREW, SUBLANG_DEFAULT
#pragma code_page(1255)

#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//

1 TEXTINCLUDE
BEGIN
"resource.h\0"
END

2 TEXTINCLUDE
BEGIN
"#ifndef APSTUDIO_INVOKED\r\n"
"#include ""targetver.h""\r\n"
"#endif\r\n"
"#include ""afxres.h""\r\n"
"\0"
END

3 TEXTINCLUDE
BEGIN
"#define _AFX_NO_SPLITTER_RESOURCES\r\n"
"#define _AFX_NO_OLE_RESOURCES\r\n"
"#define _AFX_NO_TRACKER_RESOURCES\r\n"
"#define _AFX_NO_PROPERTY_RESOURCES\r\n"
"\r\n"
"#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n"
"LANGUAGE 9, 1\r\n"
"#pragma code_page(1252)\r\n"
"#include ""res\\OptimizationDemo.rc2"" // non-Microsoft Visual C++ edited resources\r\n"
"#include ""afxres.rc"" // Standard components\r\n"
"#endif\r\n"
"\0"
END

#endif // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// Icon
//

// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDR_MAINFRAME ICON "res\\OptimizationDemo.ico"


/////////////////////////////////////////////////////////////////////////////
//
// Menu
//

IDR_MENU1 MENU
BEGIN
POPUP "Analyzer"
BEGIN
MENUITEM "Open Dialog", ID_ANALYZER_OPENDIALOG
MENUITEM "Close Dialog", ID_ANALYZER_CLOSEDIALOG
END
END

#endif // Hebrew (Israel) resources
/////////////////////////////////////////////////////////////////////////////



#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
#define _AFX_NO_SPLITTER_RESOURCES
#define _AFX_NO_OLE_RESOURCES
#define _AFX_NO_TRACKER_RESOURCES
#define _AFX_NO_PROPERTY_RESOURCES

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
LANGUAGE 9, 1
#pragma code_page(1252)
#include "res\OptimizationDemo.rc2" // non-Microsoft Visual C++ edited resources
#include "afxres.rc" // Standard components
#endif

/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED

Loading

0 comments on commit 589f2ea

Please sign in to comment.