Community Profile

photo

Richárd Tóth


Active since 2019

Followers: 0   Following: 0

Statistics

  • First Review
  • Thankful Level 3

View badges

Feeds

View by

Question


What starting point to choose so fsolve always returns a solution when any exists?
Hello I want to check if a circle/sphere has any intersection point with a curve/surface. I did some experiment on this, but o...

4 years ago | 3 answers | 0

3

answers

Question


How to avoid dynamic variable names when I need to differentiate a function with lots of variables?
Hello Take my code for example: n = 8; syms f(x) distsq(x) X=sym('x',[1 n-1]); syms(X); P = zeros(1,n)+0.1; f(X) = sqrt...

4 years ago | 0 answers | 0

0

answers

Question


Is my code correct for finding the distance between a point and a surface?
Hello We have a point, an (hyper)surface and the distance function like . The surface in my example is . P = [0.4 0.4 0.3]; ...

4 years ago | 1 answer | 0

1

answer

Question


Find minimum of an n variable function, n is like 800+
Hello Do you think it's possible to get a solution on a problem like this in a reasonable time? https://math.stackexchange.com...

4 years ago | 3 answers | 0

3

answers

Question


How can I code these 2 equations?
Hello Is it possible to write these as 1-1 assignment? given. is , is and is . and are matrices The problematic p...

4 years ago | 0 answers | 0

0

answers

Question


Linear programming, interested in only 1 variable
Hello It might be a stupid question, but I'm a bit confused. You have inequalities, want to find the smallest for example val...

4 years ago | 1 answer | 0

1

answer

Question


Best way to create a matrix of points?
Hello I have a matrix that contains rectangles(squares in this case), for example: A=[-5 -4.5 1.5 2; -5 -4.5 2 2.5; -5 -4.5 2....

4 years ago | 1 answer | 0

1

answer

Question


Is the usage of fseminf limited?
Hello Consider the constraint: https://www.mathworks.com/help/optim/ug/two-dimensional-semi-infinite-constraint.html Modify ...

4 years ago | 1 answer | 1

1

answer

Question


Is there any way to use intervals(Intlab) instead of real numbers when optimizing in Matlab?
Hello I wanted to use intervals instead of numbers to prevent rounding errors, but since Intlab doesn't belong to Matlab, it is...

4 years ago | 1 answer | 0

1

answer

Answered
How can I find out which function displays something in console?
the find files function was helpful

4 years ago | 0

| accepted

Question


How can I find out which function displays something in console?
Hello Some weeks ago(when I started using Matlab) I think I modified one of the built in functions which I didn't use since t...

4 years ago | 1 answer | 0

1

answer

Question


How can I troubleshoot this fmincon error?
Hello I'm using the fmincon function to solve an optimization problem, but after the 2nd iteration(the first 2 runs fine), it g...

4 years ago | 0 answers | 0

0

answers

Question


Differentiating gives wrong result
Hello One of my functions returns this symbolic expression (10000*(x2*cos((9*pi)/40) + x1*sin((9*pi)/40))^2)/9801 + (10000*(x1...

4 years ago | 1 answer | 0

1

answer

Question


How to substitute x1,...,xn at once?
Hello Consider the following code: X=sym('x',[1,5]); syms(X); A=[cos(x1)+cos(x2) sin(x2)*sin(x5) x1^2*x3 x4+x5 x5+3]; How d...

4 years ago | 0 answers | 0

0

answers

Question


What's the best way to check if a system of one equation and one inequality has any solution?
Hello I've tried the solve function, but it gave me empty result: syms x y >> cond1 = x^2/25 + y^2/25 == 1; >> cond2 = y <= ...

4 years ago | 2 answers | 0

2

answers

Question


Can one solve optimization problem(in Matlab) with conditional constraint that depends on the decision variables?
Hello My original problem is: Find maximal volume ellipsoid(or ellipse if ), it's size is limited by constraints, can be hi...

4 years ago | 0 answers | 0

0

answers

Question


Fseminf can't be used if the constraints' dimsion is higher than 2?
Hello What can you do if the constraints have higher dimension than 2? Here https://www.mathworks.com/help/optim/ug/two-dimen...

4 years ago | 1 answer | 0

1

answer

Question


What if you modify this matlab optimization example?
Hello https://www.mathworks.com/help/optim/ug/two-dimensional-semi-infinite-constraint.html what if w2 is between 1 and 199 in...

4 years ago | 0 answers | 0

0

answers

Question


Matrix multiplication of different sizes
Hello I can't store equations like these x1,...,xn equations here: https://en.wikipedia.org/wiki/N-sphere#Spherical_coordinat...

4 years ago | 1 answer | 0

1

answer

Question


What's wrong with my objective function?
Hello When I run this line of code, [d,fval] = fseminf(@objfun,x0,numOfInequations,@semInfConstraints); I get the following ...

4 years ago | 0 answers | 0

0

answers

Question


How do you create multiple symbolic variables?
Here is my code, but is there a simpler solution? % create symbolic variables x1,...,xn for i=1:n eval(join(['syms x' s...

4 years ago | 1 answer | 0

1

answer

Question


How could you modify this semi-infinite optimization to global optimization using GlobalSearch?
Hello I managed to create a script and find local minimum for my problem based on this example: https://www.mathworks.com/help...

4 years ago | 1 answer | 0

1

answer

Question


Finding global minimum with fseminf
Hello I'm trying to solve optimization problems with fseminf, but as we know it finds local minimum. My question is: Is it a ...

4 years ago | 1 answer | 0

1

answer

Question


Is it possible to create a function which transforms one expression to another(by substitution)?
The function would accept an input like y >= 2x + 2 and return something like 4ab - a - b + 2 <= 0 by using the following substi...

4 years ago | 1 answer | 0

1

answer