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

Optimization problem

  • February 7, 2025
  • 2 replies
  • 736 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

2 replies

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