Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

** Community Tip** - Want the oppurtunity to discuss enhancements to PTC products? Join a working group!
X

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Mar 14, 2023
10:11 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Mar 14, 2023
10:11 PM

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

Labels:

1 REPLY 1

Mar 23, 2023
11:48 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Mar 23, 2023
11:48 AM

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.

Prime 9 file enclosed: