codegen fixes, bug fixes, gets running on testbed environment

This commit is contained in:
kdee committed 2026-03-09 21:23:31 -07:00
1 parent 58d87cd16f
commit 1ada914384
38 files changed
+1732 -263

No files matched your search

+1 -2
View File
@@ -30,8 +30,7 @@ function obj = initialize(obj, objectiveFunction, domain, discretizationStep, pr
[obj.X, obj.Y] = meshgrid(xGrid, yGrid);
% Evaluate function over grid points
obj.objectiveFunction = objectiveFunction;
obj.values = reshape(obj.objectiveFunction(obj.X, obj.Y), size(obj.X));
obj.values = reshape(objectiveFunction(obj.X, obj.Y), size(obj.X));
% Normalize
obj.values = obj.values ./ max(obj.values, [], "all");