# forum.alglib.net

ALGLIB forum
 It is currently Sun Jan 29, 2023 4:35 pm

 All times are UTC

### Forum rules

1. This forum can be used for discussion of both ALGLIB-related and general numerical analysis questions
2. This forum is English-only - postings in other languages will be removed.

 Page 1 of 1 [ 1 post ]
 Print view Previous topic | Next topic
Author Message
 Post subject: Help needed for simple problemPosted: Thu Mar 18, 2021 1:36 pm

Joined: Thu Mar 18, 2021 9:52 am
Posts: 1
I am not a mathematician but I would appeciate some assistance in how to model the following geometrical problem.

We have a rectangle with rounded corners that must fit within a circle (Not necessarily tangent edges of circle).

W Width of rectangle
H Height of rectangle
D Diameter of circle

Approximate domains:
W [10..100] Continuous or discrete range
H [10..100] Continuous or discrete range
R [1..100] Continuous or discrete range (Deliberately too large)
D [10,12,14,16,20,30] Discrete set

Constraints
C1 R < 0.5 W
C2 R < 0.5 H
(C3 (W-2R)^2 + (H-2R)^2 <= (D-2R)^2)

Replacing C3 by substitution with the following Constraints
C4 A=W-2R
C5 B=H-2R
C6 C=D-2R
C7 A^2 + B^2 <= C^2

We want to maximize/minimize each variable (typically W, H, R) for each diameter D

If we have understood it correctly, this is a QCLP - a linear objective function (single variable) with a mix of linear/quadratic equality/inequality constraints.

Note: This is just an example and we do know how to solve it manually of course - however we are trying to understand how such a model can be setup and solved in Alglib.

Top

 Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending
 Page 1 of 1 [ 1 post ]

 All times are UTC

#### Who is online

Users browsing this forum: Bing [Bot], Sergey.Bochkanov and 2 guests

 You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum

Search for: