Start a topic
With the exception of Windchill, The PTC Community is on read-only status until April 6 in preparation for moving our community to a new platform. Learn more here
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

The PTC Community is on temporary read only status in preparation for moving our community to a new platform. Learn more here

Translate the entire conversation x

Using Lagrangian to find the maxima for a multivariable function solve block wont find a solution.

JLP
4-Participant
4-Participant

Using Lagrangian to find the maxima for a multivariable function solve block wont find a solution.

Using Lagrangian to find the maxima for a multivariable function, solve block wont find a solution, I'm using the solve block to try and solve the functions given by the gradient of the Lagrangian.

The solve block give error: No solution was found. Trying changing the guess value

 

Any help is appreciated

 

 

 

1 REPLY 1
terryhendicott
21-Topaz II
(To:JLP)

Hi,

It seems there is a mix up of equals between:-

assignment equals [shift]: shown as a colon plus equal sign

comparison equals [ctrl]= shown as a bold equal sign.

Solve blocks are sensitive to values used as guesses so trial and error is often necessary.

Here is one solution after changing some comparison equals to assignment equals to define functions.

Capture.JPG

Prime 9 file enclosed:

Announcements


Top Tags