I have a code that should run in a theoretical timeframe of T in discrete time indexes.
It minimized two costs and has various constraints all coded using Yalmip.
It uses Gurobi as a solver.
The code is supposed to assign robots to 1 of 3 tasks, each of which has a degradation associated with it. The robots start with a fresh s(1)=100% and in each time index, the appropriate value for d is deducted from 100%. Once it hits smin, which is 80%, it is supposed to reset back to smax (100%) and then keep running. When this "replacement" from 80% to 100% happens, the variable p(t) is set to 1. Then the code needs to keep running. Here is where the code seems to get stuck. I believe my code is running in a never-ending loop and is not giving any results when the variable p(t) is 1 at any given point.
PLEASE have experience with Yalmip and Gurobi.
I am a control engineering PhD student with quite strong Matlab and YALMIP experience. I am currently working on a big MPC project with industry, so I have a lot of experience with implementing complex optimization algorithms.
I am a new member and want to raise my score so I definitely won't fail you. Please contact me to share more information.