Skip to main content
14-Alexandrite
February 7, 2025
Solved

Optimization problem

  • February 7, 2025
  • 1 reply
  • 705 views

Hello everyone!

I’am trying to solve an optimización problem using minimize function but get an error “This variable is undefined”.

What am I doing wrong?

CarlosRomero

Best answer by terryhendicott

Hi Carlos

x is a matrix so needs two indices:

Capture.JPG

Cheers

Terry

1 reply

21-Topaz II
February 8, 2025

Hi Carlos

x is a matrix so needs two indices:

Capture.JPG

Cheers

Terry

14-Alexandrite
February 8, 2025

Thanks Terry.

Best regards,

CarlosRomero