forum.alglib.net

ALGLIB forum
It is currently Mon Dec 06, 2021 2:57 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.



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Help needed for simple problem
PostPosted: Thu Mar 18, 2021 1:36 pm 
Offline

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
R Radius of rectangles corner
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
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group