diff --git a/PowellProcess/.vs/PowellProcess/FileContentIndex/4fd3022b-1093-47cb-9ba7-9c1781ce3f54.vsidx b/PowellProcess/.vs/PowellProcess/FileContentIndex/4fd3022b-1093-47cb-9ba7-9c1781ce3f54.vsidx new file mode 100644 index 0000000..4ba6dde Binary files /dev/null and b/PowellProcess/.vs/PowellProcess/FileContentIndex/4fd3022b-1093-47cb-9ba7-9c1781ce3f54.vsidx differ diff --git a/PowellProcess/.vs/PowellProcess/FileContentIndex/5862650e-ee52-42c0-bf20-0853ea9a8726.vsidx b/PowellProcess/.vs/PowellProcess/FileContentIndex/5862650e-ee52-42c0-bf20-0853ea9a8726.vsidx new file mode 100644 index 0000000..70aef67 Binary files /dev/null and b/PowellProcess/.vs/PowellProcess/FileContentIndex/5862650e-ee52-42c0-bf20-0853ea9a8726.vsidx differ diff --git a/PowellProcess/.vs/PowellProcess/FileContentIndex/921486a4-d8aa-4d97-b8e0-0ca418c41eb0.vsidx b/PowellProcess/.vs/PowellProcess/FileContentIndex/921486a4-d8aa-4d97-b8e0-0ca418c41eb0.vsidx new file mode 100644 index 0000000..4fe772b Binary files /dev/null and b/PowellProcess/.vs/PowellProcess/FileContentIndex/921486a4-d8aa-4d97-b8e0-0ca418c41eb0.vsidx differ diff --git a/PowellProcess/.vs/PowellProcess/FileContentIndex/925f25cb-d8ed-4342-b91b-ca6837f2a800.vsidx b/PowellProcess/.vs/PowellProcess/FileContentIndex/925f25cb-d8ed-4342-b91b-ca6837f2a800.vsidx new file mode 100644 index 0000000..70aef67 Binary files /dev/null and b/PowellProcess/.vs/PowellProcess/FileContentIndex/925f25cb-d8ed-4342-b91b-ca6837f2a800.vsidx differ diff --git a/PowellProcess/.vs/PowellProcess/FileContentIndex/f4695092-c750-431f-bd5b-5dd1b7efc6f6.vsidx b/PowellProcess/.vs/PowellProcess/FileContentIndex/f4695092-c750-431f-bd5b-5dd1b7efc6f6.vsidx new file mode 100644 index 0000000..70aef67 Binary files /dev/null and b/PowellProcess/.vs/PowellProcess/FileContentIndex/f4695092-c750-431f-bd5b-5dd1b7efc6f6.vsidx differ diff --git a/PowellProcess/.vs/PowellProcess/v17/.suo b/PowellProcess/.vs/PowellProcess/v17/.suo new file mode 100644 index 0000000..931060e Binary files /dev/null and b/PowellProcess/.vs/PowellProcess/v17/.suo differ diff --git a/PowellProcess/.vs/PowellProcess/v17/Browse.VC.db b/PowellProcess/.vs/PowellProcess/v17/Browse.VC.db new file mode 100644 index 0000000..4165999 Binary files /dev/null and b/PowellProcess/.vs/PowellProcess/v17/Browse.VC.db differ diff --git a/PowellProcess/.vs/PowellProcess/v17/Browse.VC.db-shm b/PowellProcess/.vs/PowellProcess/v17/Browse.VC.db-shm new file mode 100644 index 0000000..7a49f4e Binary files /dev/null and b/PowellProcess/.vs/PowellProcess/v17/Browse.VC.db-shm differ diff --git a/PowellProcess/.vs/PowellProcess/v17/Browse.VC.db-wal b/PowellProcess/.vs/PowellProcess/v17/Browse.VC.db-wal new file mode 100644 index 0000000..e69de29 diff --git a/PowellProcess/.vs/PowellProcess/v17/Browse.VC.opendb b/PowellProcess/.vs/PowellProcess/v17/Browse.VC.opendb new file mode 100644 index 0000000..e730654 Binary files /dev/null and b/PowellProcess/.vs/PowellProcess/v17/Browse.VC.opendb differ diff --git a/PowellProcess/.vs/PowellProcess/v17/DocumentLayout.backup.json b/PowellProcess/.vs/PowellProcess/v17/DocumentLayout.backup.json new file mode 100644 index 0000000..62eff89 --- /dev/null +++ b/PowellProcess/.vs/PowellProcess/v17/DocumentLayout.backup.json @@ -0,0 +1,63 @@ +{ + "Version": 1, + "WorkspaceRootPath": "C:\\Users\\timsh\\source\\repos\\PowellProcess\\PowellProcess\\", + "Documents": [ + { + "AbsoluteMoniker": "D:0:0:{96CF9CA7-219C-48E8-A531-293A42063671}|PowellProcess\\PowellProcess.vcxproj|C:\\Users\\timsh\\source\\repos\\PowellProcess\\PowellProcess\\PowellProcess\\PowellProcess.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}", + "RelativeMoniker": "D:0:0:{96CF9CA7-219C-48E8-A531-293A42063671}|PowellProcess\\PowellProcess.vcxproj|solutionrelative:PowellProcess\\PowellProcess.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}" + }, + { + "AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\timsh\\source\\repos\\PowellOptimizer\\PowellOptimizer\\primer.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}" + } + ], + "DocumentGroupContainers": [ + { + "Orientation": 0, + "VerticalTabListWidth": 256, + "DocumentGroups": [ + { + "DockedWidth": 200, + "SelectedChildIndex": 1, + "Children": [ + { + "$type": "Document", + "DocumentIndex": 1, + "Title": "primer.cpp", + "DocumentMoniker": "C:\\Users\\timsh\\source\\repos\\PowellOptimizer\\PowellOptimizer\\primer.cpp", + "RelativeDocumentMoniker": "..\\..\\PowellOptimizer\\PowellOptimizer\\primer.cpp", + "ToolTip": "C:\\Users\\timsh\\source\\repos\\PowellOptimizer\\PowellOptimizer\\primer.cpp", + "RelativeToolTip": "..\\..\\PowellOptimizer\\PowellOptimizer\\primer.cpp", + "ViewState": "AgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000677|", + "WhenOpened": "2026-01-19T10:13:42.375Z", + "EditorCaption": "" + }, + { + "$type": "Document", + "DocumentIndex": 0, + "Title": "PowellProcess.cpp", + "DocumentMoniker": "C:\\Users\\timsh\\source\\repos\\PowellProcess\\PowellProcess\\PowellProcess\\PowellProcess.cpp", + "RelativeDocumentMoniker": "PowellProcess\\PowellProcess.cpp", + "ToolTip": "C:\\Users\\timsh\\source\\repos\\PowellProcess\\PowellProcess\\PowellProcess\\PowellProcess.cpp", + "RelativeToolTip": "PowellProcess\\PowellProcess.cpp", + "ViewState": "AgIAAEoAAAAAAAAAAAAAAFgAAAAZAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000677|", + "WhenOpened": "2025-12-02T07:13:10.558Z", + "EditorCaption": "" + } + ] + }, + { + "DockedWidth": 96, + "SelectedChildIndex": -1, + "Children": [ + { + "$type": "Bookmark", + "Name": "ST:0:0:{6324226f-61b6-4f28-92ee-18d4b5fe1e48}" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/PowellProcess/.vs/PowellProcess/v17/DocumentLayout.json b/PowellProcess/.vs/PowellProcess/v17/DocumentLayout.json new file mode 100644 index 0000000..67d9703 --- /dev/null +++ b/PowellProcess/.vs/PowellProcess/v17/DocumentLayout.json @@ -0,0 +1,62 @@ +{ + "Version": 1, + "WorkspaceRootPath": "C:\\Users\\timsh\\source\\repos\\PowellProcess\\PowellProcess\\", + "Documents": [ + { + "AbsoluteMoniker": "D:0:0:{96CF9CA7-219C-48E8-A531-293A42063671}|PowellProcess\\PowellProcess.vcxproj|C:\\Users\\timsh\\source\\repos\\PowellProcess\\PowellProcess\\PowellProcess\\PowellProcess.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}", + "RelativeMoniker": "D:0:0:{96CF9CA7-219C-48E8-A531-293A42063671}|PowellProcess\\PowellProcess.vcxproj|solutionrelative:PowellProcess\\PowellProcess.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}" + }, + { + "AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\timsh\\source\\repos\\PowellOptimizer\\PowellOptimizer\\primer.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}" + } + ], + "DocumentGroupContainers": [ + { + "Orientation": 0, + "VerticalTabListWidth": 256, + "DocumentGroups": [ + { + "DockedWidth": 200, + "SelectedChildIndex": 1, + "Children": [ + { + "$type": "Document", + "DocumentIndex": 1, + "Title": "primer.cpp", + "DocumentMoniker": "C:\\Users\\timsh\\source\\repos\\PowellOptimizer\\PowellOptimizer\\primer.cpp", + "RelativeDocumentMoniker": "..\\..\\PowellOptimizer\\PowellOptimizer\\primer.cpp", + "ToolTip": "C:\\Users\\timsh\\source\\repos\\PowellOptimizer\\PowellOptimizer\\primer.cpp", + "RelativeToolTip": "..\\..\\PowellOptimizer\\PowellOptimizer\\primer.cpp", + "ViewState": "AgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000677|", + "WhenOpened": "2026-01-19T10:13:42.375Z" + }, + { + "$type": "Document", + "DocumentIndex": 0, + "Title": "PowellProcess.cpp", + "DocumentMoniker": "C:\\Users\\timsh\\source\\repos\\PowellProcess\\PowellProcess\\PowellProcess\\PowellProcess.cpp", + "RelativeDocumentMoniker": "PowellProcess\\PowellProcess.cpp", + "ToolTip": "C:\\Users\\timsh\\source\\repos\\PowellProcess\\PowellProcess\\PowellProcess\\PowellProcess.cpp", + "RelativeToolTip": "PowellProcess\\PowellProcess.cpp", + "ViewState": "AgIAAEoAAAAAAAAAAAAAAFgAAAAZAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000677|", + "WhenOpened": "2025-12-02T07:13:10.558Z", + "EditorCaption": "" + } + ] + }, + { + "DockedWidth": 96, + "SelectedChildIndex": -1, + "Children": [ + { + "$type": "Bookmark", + "Name": "ST:0:0:{6324226f-61b6-4f28-92ee-18d4b5fe1e48}" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/PowellProcess/.vs/PowellProcess/v17/Solution.VC.db b/PowellProcess/.vs/PowellProcess/v17/Solution.VC.db new file mode 100644 index 0000000..d4ad689 Binary files /dev/null and b/PowellProcess/.vs/PowellProcess/v17/Solution.VC.db differ diff --git a/PowellProcess/.vs/PowellProcess/v17/ipch/AutoPCH/1c5a6ef323f8873/POWELLPROCESS.ipch b/PowellProcess/.vs/PowellProcess/v17/ipch/AutoPCH/1c5a6ef323f8873/POWELLPROCESS.ipch new file mode 100644 index 0000000..d26165d Binary files /dev/null and b/PowellProcess/.vs/PowellProcess/v17/ipch/AutoPCH/1c5a6ef323f8873/POWELLPROCESS.ipch differ diff --git a/PowellProcess/.vs/PowellProcess/v17/ipch/AutoPCH/23919a142df276b3/POWELLPROCESS.ipch b/PowellProcess/.vs/PowellProcess/v17/ipch/AutoPCH/23919a142df276b3/POWELLPROCESS.ipch new file mode 100644 index 0000000..7926322 Binary files /dev/null and b/PowellProcess/.vs/PowellProcess/v17/ipch/AutoPCH/23919a142df276b3/POWELLPROCESS.ipch differ diff --git a/PowellProcess/.vs/PowellProcess/v17/ipch/AutoPCH/47a9c10e23ef03b7/PRIMER.ipch b/PowellProcess/.vs/PowellProcess/v17/ipch/AutoPCH/47a9c10e23ef03b7/PRIMER.ipch new file mode 100644 index 0000000..1b373cf Binary files /dev/null and b/PowellProcess/.vs/PowellProcess/v17/ipch/AutoPCH/47a9c10e23ef03b7/PRIMER.ipch differ diff --git a/PowellProcess/.vs/PowellProcess/v17/ipch/AutoPCH/53109fb8376972aa/PRIMER.ipch b/PowellProcess/.vs/PowellProcess/v17/ipch/AutoPCH/53109fb8376972aa/PRIMER.ipch new file mode 100644 index 0000000..ac24850 Binary files /dev/null and b/PowellProcess/.vs/PowellProcess/v17/ipch/AutoPCH/53109fb8376972aa/PRIMER.ipch differ diff --git a/PowellProcess/.vs/PowellProcess/v17/ipch/AutoPCH/568adc26a1c548ba/2.ipch b/PowellProcess/.vs/PowellProcess/v17/ipch/AutoPCH/568adc26a1c548ba/2.ipch new file mode 100644 index 0000000..3f9e8b3 Binary files /dev/null and b/PowellProcess/.vs/PowellProcess/v17/ipch/AutoPCH/568adc26a1c548ba/2.ipch differ diff --git a/PowellProcess/.vs/PowellProcess/v17/ipch/AutoPCH/5ce4c748a67a31ee/FUNCTION.ipch b/PowellProcess/.vs/PowellProcess/v17/ipch/AutoPCH/5ce4c748a67a31ee/FUNCTION.ipch new file mode 100644 index 0000000..2470d4f Binary files /dev/null and b/PowellProcess/.vs/PowellProcess/v17/ipch/AutoPCH/5ce4c748a67a31ee/FUNCTION.ipch differ diff --git a/PowellProcess/.vs/PowellProcess/v17/ipch/AutoPCH/7b966173fa302257/PRIMER.ipch b/PowellProcess/.vs/PowellProcess/v17/ipch/AutoPCH/7b966173fa302257/PRIMER.ipch new file mode 100644 index 0000000..7821724 Binary files /dev/null and b/PowellProcess/.vs/PowellProcess/v17/ipch/AutoPCH/7b966173fa302257/PRIMER.ipch differ diff --git a/PowellProcess/.vs/PowellProcess/v17/ipch/AutoPCH/7e8b5e550a5010d8/PRIMER.ipch b/PowellProcess/.vs/PowellProcess/v17/ipch/AutoPCH/7e8b5e550a5010d8/PRIMER.ipch new file mode 100644 index 0000000..9ba6acc Binary files /dev/null and b/PowellProcess/.vs/PowellProcess/v17/ipch/AutoPCH/7e8b5e550a5010d8/PRIMER.ipch differ diff --git a/PowellProcess/.vs/PowellProcess/v17/ipch/AutoPCH/8703cf6517c3efb5/PRIMER.ipch b/PowellProcess/.vs/PowellProcess/v17/ipch/AutoPCH/8703cf6517c3efb5/PRIMER.ipch new file mode 100644 index 0000000..6e1637d Binary files /dev/null and b/PowellProcess/.vs/PowellProcess/v17/ipch/AutoPCH/8703cf6517c3efb5/PRIMER.ipch differ diff --git a/PowellProcess/PowellProcess.sln b/PowellProcess/PowellProcess.sln new file mode 100644 index 0000000..859dd35 --- /dev/null +++ b/PowellProcess/PowellProcess.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.13.35931.197 d17.13 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PowellProcess", "PowellProcess\PowellProcess.vcxproj", "{96CF9CA7-219C-48E8-A531-293A42063671}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {96CF9CA7-219C-48E8-A531-293A42063671}.Debug|x64.ActiveCfg = Debug|x64 + {96CF9CA7-219C-48E8-A531-293A42063671}.Debug|x64.Build.0 = Debug|x64 + {96CF9CA7-219C-48E8-A531-293A42063671}.Debug|x86.ActiveCfg = Debug|Win32 + {96CF9CA7-219C-48E8-A531-293A42063671}.Debug|x86.Build.0 = Debug|Win32 + {96CF9CA7-219C-48E8-A531-293A42063671}.Release|x64.ActiveCfg = Release|x64 + {96CF9CA7-219C-48E8-A531-293A42063671}.Release|x64.Build.0 = Release|x64 + {96CF9CA7-219C-48E8-A531-293A42063671}.Release|x86.ActiveCfg = Release|Win32 + {96CF9CA7-219C-48E8-A531-293A42063671}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {5173EBF9-5EF2-4AEF-930E-D2F79979D32F} + EndGlobalSection +EndGlobal diff --git a/PowellProcess/PowellProcess/PowellProcess.cpp b/PowellProcess/PowellProcess/PowellProcess.cpp new file mode 100644 index 0000000..675d713 --- /dev/null +++ b/PowellProcess/PowellProcess/PowellProcess.cpp @@ -0,0 +1,172 @@ +#include +#include +#include +#include +#include +#include +#include +#include + +// Тип функции из DLL +typedef double (*TargetFunctionType)(double*, int); +TargetFunctionType g_TargetFunction = nullptr; + +// Обертка для вызова целевой функции +double CallTargetFunction(const std::vector& x) { + if (!g_TargetFunction) return 0.0; + return g_TargetFunction(const_cast(&x[0]), static_cast(x.size())); +} + +void add_scaled(const std::vector& dir, std::vector& res, double lambda) { + for (size_t i = 0; i < dir.size(); ++i) { + res[i] += lambda * dir[i]; + } +} + +// Поиск интервала (из peyll.txt) +void get_lambda_segment(const std::vector& point, const std::vector& dir, double step, double& a, double& c) { + double left = 0, middle = 0, right = 0; + double y_curr = CallTargetFunction(point); + double y_next = y_curr; + double r = (3.0 - std::sqrt(5.0)) / 2.0; + r = (1.0 - r) / r; // ~ 1.618 + + int iterations = 0; + do { + y_curr = y_next; + left = middle; + middle = right; + right += step; + std::vector x = point; + add_scaled(dir, x, right); + y_next = CallTargetFunction(x); + step *= r; + iterations++; + } while (y_next < y_curr && iterations < 100); + + a = left; + c = right; +} + +// Золотое сечение (из peyll.txt) +double gold_method(const std::vector& point, const std::vector& dir, double a, double c, double eps) { + double r = (3.0 - std::sqrt(5.0)) / 2.0; + double b = a + r * (c - a); + std::vector x_b = point; + add_scaled(dir, x_b, b); + double y_b = CallTargetFunction(x_b); + + while (std::abs(c - a) > eps) { + double d = c + r * (a - c); + std::vector x_d = point; + add_scaled(dir, x_d, d); + double y_d = CallTargetFunction(x_d); + if (y_d < y_b) { a = b; b = d; y_b = y_d; } + else { c = a; a = d; } + } + return (a + c) / 2.0; +} + +// Поиск лучшей лямбды в обоих направлениях +double get_best_lambda(const std::vector& point, const std::vector& dir, double eps, double initial_step) { + double a, c; + // Поиск в '+' + get_lambda_segment(point, dir, initial_step, a, c); + double l1 = gold_method(point, dir, a, c, eps); + // Поиск в '-' + get_lambda_segment(point, dir, -initial_step, a, c); + double l2 = gold_method(point, dir, a, c, eps); + + std::vector x1 = point, x2 = point; + add_scaled(dir, x1, l1); + add_scaled(dir, x2, l2); + return (CallTargetFunction(x1) < CallTargetFunction(x2)) ? l1 : l2; +} + +int main(int argc, char* argv[]) { + // ВАЖНО: argc - 1 (exe) - 1 (dll) - 1 (eps) - 1 (iter) - 1 (step) = N + // Значит N = argc - 5 + if (argc < 6) { + std::cerr << "Error: Not enough arguments! Received: " << argc << std::endl; + return 1; + } + + HMODULE hLib = NULL; + try { + std::string dllPath = argv[1]; + int numVars = argc - 5; + + std::vector x(numVars); + for (int i = 0; i < numVars; i++) { + x[i] = std::stod(argv[2 + i]); + } + + double epsilon = std::stod(argv[argc - 3]); + int maxIter = std::stoi(argv[argc - 2]); + double userStep = std::stod(argv[argc - 1]); // Возвращенный параметр шага + + std::cout << "Starting Powell Optimization..." << std::endl; + std::cout << "DLL: " << dllPath << " | Vars: " << numVars << std::endl; + std::cout << "Eps: " << epsilon << " | MaxIter: " << maxIter << " | Step: " << userStep << std::endl; + std::cout << "------------------------------------------" << std::endl; + + hLib = LoadLibraryA(dllPath.c_str()); + if (!hLib) throw std::runtime_error("Could not load DLL: " + dllPath); + + g_TargetFunction = (TargetFunctionType)GetProcAddress(hLib, "targetFunction"); + if (!g_TargetFunction) throw std::runtime_error("Function 'targetFunction' not found in DLL."); + + std::vector> directions(numVars, std::vector(numVars, 0.0)); + for (int i = 0; i < numVars; ++i) directions[i][i] = 1.0; + + int iterations = 0; + bool converged = false; + + while (iterations < maxIter) { + double f_start = CallTargetFunction(x); + std::vector p_start = x; + + // 1. Поиск по текущим направлениям + for (int i = 0; i < numVars; ++i) { + double lambda = get_best_lambda(x, directions[i], epsilon, userStep); + add_scaled(directions[i], x, lambda); + } + + // 2. Новое направление (сопряженное) + std::vector new_dir(numVars); + for (int i = 0; i < numVars; ++i) new_dir[i] = x[i] - p_start[i]; + + double lambda = get_best_lambda(x, new_dir, epsilon, userStep); + add_scaled(new_dir, x, lambda); + + // 3. Обновление направлений + for (int i = 0; i < numVars - 1; ++i) directions[i] = directions[i + 1]; + directions[numVars - 1] = new_dir; + + iterations++; + double f_end = CallTargetFunction(x); + double delta = std::abs(f_start - f_end); + + std::cout << "Iteration " << iterations << ": F = " << f_end << " (delta: " << delta << ")" << std::endl; + + if (delta < epsilon) { + converged = true; + break; + } + } + + std::cout << "\n========================================\n"; + std::cout << "RESULT: " << (converged ? "CONVERGED" : "MAX ITERATIONS REACHED") << std::endl; + for (int i = 0; i < numVars; i++) std::cout << "x[" << i << "] = " << x[i] << std::endl; + std::cout << "F(min) = " << CallTargetFunction(x) << std::endl; + std::cout << "Iterations: " << iterations << std::endl; + std::cout << "========================================\n"; + + } + catch (const std::exception& e) { + std::cerr << "RUNTIME ERROR: " << e.what() << std::endl; + } + + if (hLib) FreeLibrary(hLib); + return 0; +} diff --git a/PowellProcess/PowellProcess/PowellProcess.vcxproj b/PowellProcess/PowellProcess/PowellProcess.vcxproj new file mode 100644 index 0000000..7e5e3dd --- /dev/null +++ b/PowellProcess/PowellProcess/PowellProcess.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {96cf9ca7-219c-48e8-a531-293a42063671} + PowellProcess + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + Level3 + true + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + copy "$(TargetPath)" "C:\Users\timsh\source\repos\PowellOptimizer\PowellOptimizer\x64\Debug\" + + + + + Level3 + true + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + copy "$(TargetPath)" "C:\Users\timsh\source\repos\PowellOptimizer\PowellOptimizer\x64\Debug\" + + + + + Level3 + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + copy "$(TargetPath)" "C:\Users\timsh\source\repos\PowellOptimizer\PowellOptimizer\x64\Debug\" + + + + + Level3 + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + copy "$(TargetPath)" "C:\Users\timsh\source\repos\PowellOptimizer\PowellOptimizer\x64\Debug\" + + + + + + + + + \ No newline at end of file diff --git a/PowellProcess/PowellProcess/PowellProcess.vcxproj.filters b/PowellProcess/PowellProcess/PowellProcess.vcxproj.filters new file mode 100644 index 0000000..9a93c1a --- /dev/null +++ b/PowellProcess/PowellProcess/PowellProcess.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Исходные файлы + + + \ No newline at end of file diff --git a/PowellProcess/PowellProcess/PowellProcess.vcxproj.user b/PowellProcess/PowellProcess/PowellProcess.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/PowellProcess/PowellProcess/PowellProcess.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/PowellProcess/PowellProcess/x64/Debug/PowellProcess.exe.recipe b/PowellProcess/PowellProcess/x64/Debug/PowellProcess.exe.recipe new file mode 100644 index 0000000..bc78e8b --- /dev/null +++ b/PowellProcess/PowellProcess/x64/Debug/PowellProcess.exe.recipe @@ -0,0 +1,11 @@ + + + + + C:\Users\timsh\source\repos\PowellProcess\PowellProcess\x64\Debug\PowellProcess.exe + + + + + + \ No newline at end of file diff --git a/PowellProcess/PowellProcess/x64/Debug/PowellProcess.ilk b/PowellProcess/PowellProcess/x64/Debug/PowellProcess.ilk new file mode 100644 index 0000000..2d67744 Binary files /dev/null and b/PowellProcess/PowellProcess/x64/Debug/PowellProcess.ilk differ diff --git a/PowellProcess/PowellProcess/x64/Debug/PowellProcess.log b/PowellProcess/PowellProcess/x64/Debug/PowellProcess.log new file mode 100644 index 0000000..d11d428 --- /dev/null +++ b/PowellProcess/PowellProcess/x64/Debug/PowellProcess.log @@ -0,0 +1,3 @@ + PowellProcess.cpp + PowellProcess.vcxproj -> C:\Users\timsh\source\repos\PowellProcess\PowellProcess\x64\Debug\PowellProcess.exe + Скопировано файлов: 1. diff --git a/PowellProcess/PowellProcess/x64/Debug/PowellProcess.obj b/PowellProcess/PowellProcess/x64/Debug/PowellProcess.obj new file mode 100644 index 0000000..55ecda0 Binary files /dev/null and b/PowellProcess/PowellProcess/x64/Debug/PowellProcess.obj differ diff --git a/PowellProcess/PowellProcess/x64/Debug/PowellProcess.tlog/CL.command.1.tlog b/PowellProcess/PowellProcess/x64/Debug/PowellProcess.tlog/CL.command.1.tlog new file mode 100644 index 0000000..d2d1e8c Binary files /dev/null and b/PowellProcess/PowellProcess/x64/Debug/PowellProcess.tlog/CL.command.1.tlog differ diff --git a/PowellProcess/PowellProcess/x64/Debug/PowellProcess.tlog/CL.read.1.tlog b/PowellProcess/PowellProcess/x64/Debug/PowellProcess.tlog/CL.read.1.tlog new file mode 100644 index 0000000..c29c641 Binary files /dev/null and b/PowellProcess/PowellProcess/x64/Debug/PowellProcess.tlog/CL.read.1.tlog differ diff --git a/PowellProcess/PowellProcess/x64/Debug/PowellProcess.tlog/CL.write.1.tlog b/PowellProcess/PowellProcess/x64/Debug/PowellProcess.tlog/CL.write.1.tlog new file mode 100644 index 0000000..a851e96 Binary files /dev/null and b/PowellProcess/PowellProcess/x64/Debug/PowellProcess.tlog/CL.write.1.tlog differ diff --git a/PowellProcess/PowellProcess/x64/Debug/PowellProcess.tlog/Cl.items.tlog b/PowellProcess/PowellProcess/x64/Debug/PowellProcess.tlog/Cl.items.tlog new file mode 100644 index 0000000..faa178f --- /dev/null +++ b/PowellProcess/PowellProcess/x64/Debug/PowellProcess.tlog/Cl.items.tlog @@ -0,0 +1 @@ +C:\Users\timsh\source\repos\PowellProcess\PowellProcess\PowellProcess\PowellProcess.cpp;C:\Users\timsh\source\repos\PowellProcess\PowellProcess\PowellProcess\x64\Debug\PowellProcess.obj diff --git a/PowellProcess/PowellProcess/x64/Debug/PowellProcess.tlog/PowellProcess.lastbuildstate b/PowellProcess/PowellProcess/x64/Debug/PowellProcess.tlog/PowellProcess.lastbuildstate new file mode 100644 index 0000000..8064db8 --- /dev/null +++ b/PowellProcess/PowellProcess/x64/Debug/PowellProcess.tlog/PowellProcess.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.43.34808:TargetPlatformVersion=10.0.22621.0: +Debug|x64|C:\Users\timsh\source\repos\PowellProcess\PowellProcess\| diff --git a/PowellProcess/PowellProcess/x64/Debug/PowellProcess.tlog/link.command.1.tlog b/PowellProcess/PowellProcess/x64/Debug/PowellProcess.tlog/link.command.1.tlog new file mode 100644 index 0000000..339a84b Binary files /dev/null and b/PowellProcess/PowellProcess/x64/Debug/PowellProcess.tlog/link.command.1.tlog differ diff --git a/PowellProcess/PowellProcess/x64/Debug/PowellProcess.tlog/link.read.1.tlog b/PowellProcess/PowellProcess/x64/Debug/PowellProcess.tlog/link.read.1.tlog new file mode 100644 index 0000000..8d824f4 Binary files /dev/null and b/PowellProcess/PowellProcess/x64/Debug/PowellProcess.tlog/link.read.1.tlog differ diff --git a/PowellProcess/PowellProcess/x64/Debug/PowellProcess.tlog/link.secondary.1.tlog b/PowellProcess/PowellProcess/x64/Debug/PowellProcess.tlog/link.secondary.1.tlog new file mode 100644 index 0000000..7b1b5c5 --- /dev/null +++ b/PowellProcess/PowellProcess/x64/Debug/PowellProcess.tlog/link.secondary.1.tlog @@ -0,0 +1,2 @@ +^C:\USERS\TIMSH\SOURCE\REPOS\POWELLPROCESS\POWELLPROCESS\POWELLPROCESS\X64\DEBUG\POWELLPROCESS.OBJ +C:\Users\timsh\source\repos\PowellProcess\PowellProcess\PowellProcess\x64\Debug\PowellProcess.ilk diff --git a/PowellProcess/PowellProcess/x64/Debug/PowellProcess.tlog/link.write.1.tlog b/PowellProcess/PowellProcess/x64/Debug/PowellProcess.tlog/link.write.1.tlog new file mode 100644 index 0000000..cac5b7c Binary files /dev/null and b/PowellProcess/PowellProcess/x64/Debug/PowellProcess.tlog/link.write.1.tlog differ diff --git a/PowellProcess/PowellProcess/x64/Debug/vc143.idb b/PowellProcess/PowellProcess/x64/Debug/vc143.idb new file mode 100644 index 0000000..0d0a65c Binary files /dev/null and b/PowellProcess/PowellProcess/x64/Debug/vc143.idb differ diff --git a/PowellProcess/PowellProcess/x64/Debug/vc143.pdb b/PowellProcess/PowellProcess/x64/Debug/vc143.pdb new file mode 100644 index 0000000..89301f1 Binary files /dev/null and b/PowellProcess/PowellProcess/x64/Debug/vc143.pdb differ diff --git a/PowellProcess/x64/Debug/PowellProcess.exe b/PowellProcess/x64/Debug/PowellProcess.exe new file mode 100644 index 0000000..2845f84 Binary files /dev/null and b/PowellProcess/x64/Debug/PowellProcess.exe differ diff --git a/PowellProcess/x64/Debug/PowellProcess.pdb b/PowellProcess/x64/Debug/PowellProcess.pdb new file mode 100644 index 0000000..46864af Binary files /dev/null and b/PowellProcess/x64/Debug/PowellProcess.pdb differ