Question

In: Computer Science

PLEASE MAKE UP ANY 3 NONLINEAR PROGRAMMING PROBLEMs BY YOUR OWN AND SOLVE IT in either...

PLEASE MAKE UP ANY 3 NONLINEAR PROGRAMMING PROBLEMs BY YOUR OWN AND SOLVE IT in either EXCEL, matlab or lingo.

Solutions

Expert Solution

Answer:-

solving nonlinear programming problems by using matlab:-

You can include nonlinear constraints by writing a function that computes both equality and inequality constraint values. A nonlinear constraint function has the syntax

[c,ceq] = nonlinconstr(x)

The function c(x) represents the constraint c(x) <= 0. The function ceq(x) represents the constraint ceq(x) = 0.

Note:   You must have the nonlinear constraint function return both c(x) and ceq(x), even if you have only one type of nonlinear constraint. If a constraint does not exist, have the function return [] for that constraint.

For example, if you have the nonlinear equality constraint x1^2+x2=1 and the nonlinear inequality constraint x1x2 ≥ –10, rewrite them as

x1^2+x2−1=0,

x1x2−10≤0,

and then solve the problem using the following steps.

For this example, solve the problem

minf(x)=e^x1(4x1^2+2(x2)^2+4x1x2+2x2+1).

Step 1: Write a file objfun.m.

Step 2: Write a file confuneq.m for the nonlinear constraints.

Step 3: Invoke constrained optimization routine.

Output when j.m in the above photo is run:-

Note that ceq is equal to 0 within the default tolerance on the constraints of 1.0e^-006 and that c is less than or equal to 0, as desired.

Note:- you can do the same procedure for different functions using different equality and inequality constraints


Related Solutions

Solve the below questions using your own words PLEASE!! Make sure to write by your own...
Solve the below questions using your own words PLEASE!! Make sure to write by your own words or paraphrase 1. What is the difference between Windows and Linux server 2. Give some advantages and disadvantages Windows and Linux Operating System
The main difference between linear (LP) and nonlinear programming problems (NLP) is that a. No interaction...
The main difference between linear (LP) and nonlinear programming problems (NLP) is that a. No interaction terms are allowed in NLP b. NLP must have a nonlinear objective function c. Only one constraint in NLP can be nonlinear d. Some constraints in NLP may be nonlinear The standard prediction error is a. always smaller than the standard error. b. used to construct confidence intervals for predicted values. c. measures the variability in the predicted values. d. all of these. The...
Make up your own financial statement about any company with the following ; a) introduction about...
Make up your own financial statement about any company with the following ; a) introduction about the company and its goals and objectives b) prepare the revenue list with analysis c) prepare retained earnings statement with analysis d) prepare cost estimate sheet with analysis e) prepare cash flow statement with analysis in addition to budgeting f) conclusion with recommendations * the numbers could be from your imagination
Please answer it correctly. Here is a short problems. Please solve all problems correctly. Make sure...
Please answer it correctly. Here is a short problems. Please solve all problems correctly. Make sure the answers are correct. I would really appreciate your effort. Thanks. 1). The Oriole Products Co. currently has debt with a market value of $275 million outstanding. The debt consists of 9 percent coupon bonds (semiannual coupon payments) which have a maturity of 15 years and are currently priced at $1,429.26 per bond. The firm also has an issue of 2 million preferred shares...
Please answer it correctly. Here is a short problems. Please solve all problems correctly. Make sure...
Please answer it correctly. Here is a short problems. Please solve all problems correctly. Make sure the answers are correct. I would really appreciate your effort. Thanks. 1). The Oriole Products Co. currently has debt with a market value of $275 million outstanding. The debt consists of 9 percent coupon bonds (semiannual coupon payments) which have a maturity of 15 years and are currently priced at $1,429.26 per bond. The firm also has an issue of 2 million preferred shares...
Please solve using simple python programming language and make it easy to understand explain your code...
Please solve using simple python programming language and make it easy to understand explain your code as I am a beginner, use appropriate variable names which make the code easy to understand and edit if needed. A subsystem responsible for delivering priority numbers to an automated irrigation system has stopped working and you need to deliver a quick fix that will work until the actual subsystem is fixed by senior developer. As you are the newest addition to the development...
Can you please solve this using recursion/ dynamic programming? Any programming language is fine. Wallace the...
Can you please solve this using recursion/ dynamic programming? Any programming language is fine. Wallace the Weightlifting Walrus is training for a contest where it will have to lift 1000 kg. Wallace has some weight plates lying around, possibly of different weights, and its goal is to add some of the plates to a bar so that it can train with a weight as close as possible to 1000 kg. In case there exist two such numbers which are equally...
In your own words, are there any problems in looking for a “quick fix” for the...
In your own words, are there any problems in looking for a “quick fix” for the normal decline in sexual function that comes with aging? Discuss the pros and cons of the medicalization of sexual dysfunction.
Please answer them correctly. Here are short 3 problems. Please solve all 3 problems. I would...
Please answer them correctly. Here are short 3 problems. Please solve all 3 problems. I would really appreciate your effort. Thanks. 1. Linda Williams is looking to invest in a three-year bond that makes semi-annual coupon payments at a rate of 5.475 percent. If these bonds have a market price of $982.63, what yield to maturity can she expect to earn? (Round intermediate calculations to 5 decimal places, e.g. 1.25145 and final answer to 2 decimal places, e.g. 15.25%.) Excel...
Please answer them correctly. Here are short 3 problems. Please solve all 3 problems. I would...
Please answer them correctly. Here are short 3 problems. Please solve all 3 problems. I would really appreciate your effort. Thanks. 1. You invest $260 in a mutual fund today that pays 6.30 percent interest annually. How long will it take to double your money? (If you solve this problem with algebra round intermediate calculations to 6 decimal places, in all cases round your final answer to 0 decimal place, e.g. 545) Number of Years ______? 2. You decide to...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT