Originally posted by: WaiLin
Hi,
I am facing this following problem.
Index exceeds matrix dimensions. Error in ==> basecase_cplex>milpSolver at 145 try ??? Output argument "u_" (and maybe others) not assigned during call to "C:\Documents and Settings\Acer\Desktop\project\basecase_cplex.m (milpSolver)". Error in ==> basecase_cplex at 133 u_, g0_, rup_, rdn_ = milpSolver(a, b, startup_cost, pi_up, pi_dn, ... My code is working before adding constraint (1d.2) and changing index of dimension.
But, after adding constraint (1d.2), I found the error and I could not really fix this error.
Can anyone please help me?
Since I can attach one file, I've given the working code as comment.
Hope somebody can help me to solve.
Thank. Looking forwards to kind help.
Regards,
William
#CPLEXOptimizers#DecisionOptimization