# Thread:

1. ## minimize function  subject to constraint

could you help to minimize function F = x^2+y^2 subject to constraint:

1-x<0
2-0.5x-y<=0
x+y-4<0

and is there difference in solving the problem if we say insted of < say <=

2. ## Re: minimize function  subject to constraint

please any body can help me to solve this proplem any information

3. ## Re: minimize function  subject to constraint

Sketch the area associated with the constraints.

1. $1-x<0$ (or $x>1$), gives you an area to the right of the vertical $x=1.$

Do the same fo the other two constraints and you should come up with a triangular region.

$x^{2}+y^{2}$ is the square of the distance of a point from the origin. It's minimum value will therefore be the square of the distance from the origin to the point in the region which is closest to the origin.

4. ## Re: minimize function  subject to constraint

i draw the reigon as you mension i get trainangle as shown in the attachment and if we draw line from origin to the point which is the nearset to the reigeion we get the function will be minimize at x=1,y=1.5...but
note that is true if x>=1 .However , here in the question x> 1 not x>=1 so that x will never equal 1

is there differeance in the solution if x>1 or x>=1 or there are same
Attached Thumbnails

5. ## Re: minimize function  subject to constraint

x>1 as well as x>=1 both result in converging min(x^2+y^2)->3.25 which is a circle through {x,y}={1, 1.5}...so the shape of the region is useless here because its closest POINT to the origin is picked to minimize the function.

6. ## Re: minimize function  subject to constraint

Thanks for all

this mean the point (1,1.5) is the right answer
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 4, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "github"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.8789594769477844, "perplexity_flag": "middle"}