Issue Summing Linearized Optimization Expressions
Hello!
I m working on an optimization problem in MATLAB where I need to linearize and sum two expressions: uplink_time and Execution_time. My goal is to correctly define and use these expressions in an optimization problem. However, I am encountering issues where the solver switches to Genetic Algorithm unexpectedly.
known that both expressions are linear respect to my optimization variable A.
End_time = optimexpr(N, numNodes, num_vehicles);
for m = 1:num_vehicles
for k = 1:N
for n = 1:numNodes
End_time(k, n, m) = A(k, n, m)*uplink_time(k, n, m)+ A(k, n, m)*Execution_time(k, n, m);
end
end
end
When I run this code, I observe that the solver switches to GA instead of using a linear programming solver.
Could someone please help me understand why the solver is switching to GA and how to correctly define and use the optimization expressions in this context? Any advice on resolving this issue would be greatly appreciated.
Thanks a lot.Hello!
I m working on an optimization problem in MATLAB where I need to linearize and sum two expressions: uplink_time and Execution_time. My goal is to correctly define and use these expressions in an optimization problem. However, I am encountering issues where the solver switches to Genetic Algorithm unexpectedly.
known that both expressions are linear respect to my optimization variable A.
End_time = optimexpr(N, numNodes, num_vehicles);
for m = 1:num_vehicles
for k = 1:N
for n = 1:numNodes
End_time(k, n, m) = A(k, n, m)*uplink_time(k, n, m)+ A(k, n, m)*Execution_time(k, n, m);
end
end
end
When I run this code, I observe that the solver switches to GA instead of using a linear programming solver.
Could someone please help me understand why the solver is switching to GA and how to correctly define and use the optimization expressions in this context? Any advice on resolving this issue would be greatly appreciated.
Thanks a lot. Hello!
I m working on an optimization problem in MATLAB where I need to linearize and sum two expressions: uplink_time and Execution_time. My goal is to correctly define and use these expressions in an optimization problem. However, I am encountering issues where the solver switches to Genetic Algorithm unexpectedly.
known that both expressions are linear respect to my optimization variable A.
End_time = optimexpr(N, numNodes, num_vehicles);
for m = 1:num_vehicles
for k = 1:N
for n = 1:numNodes
End_time(k, n, m) = A(k, n, m)*uplink_time(k, n, m)+ A(k, n, m)*Execution_time(k, n, m);
end
end
end
When I run this code, I observe that the solver switches to GA instead of using a linear programming solver.
Could someone please help me understand why the solver is switching to GA and how to correctly define and use the optimization expressions in this context? Any advice on resolving this issue would be greatly appreciated.
Thanks a lot. matlab, code, issue, ilp, optimization MATLAB Answers — New Questions