Questions tagged [nonlinear-optimization]

sub-field of mathematical optimization (alternatively, mathematical programming) that deals with problems that are not linear

Nonlinear programming

From Wikipedia, the free encyclopedia

In mathematics, nonlinear programming is the process of solving an optimization problem defined by a system of equalities and inequalities, collectively termed constraints, over a set of unknown real variables, along with an objective function to be maximized or minimized, where some of the constraints or the objective function are nonlinear.

932 questions
-1
votes
1 answer

Sympy Cannot create mpf

So, I'm trying to solve this nonlinear system of equations and I am getting the error "cannot create mpf". Here's the sympy link . Anyone know how to solve thsi?
Eular
  • 1,707
  • 4
  • 26
  • 50
-1
votes
1 answer

Building a MINLP Heuristic Model in Python

I am currently building a MINLP model which has around 200k decision variables and upto 100 constraints. I have access to only open source solvers which are BONMIN and COUENNE. When I try to solve the problem, I see that the solver keeps on running…
-1
votes
1 answer

TypeError while trying to pass Maxcor into L-BFGS-B minimizer

I got the below error when i tried to specify the maxcor kwarg in L-BFGS-B method. The optimization line is shown below, minimizer_kwargs = {"method": "L-BFGS-B", "bounds": bounds, "maxcor": 190} BH_result=optimize.basinhopping(obj_Basinhopping,…
Paul Thomas
  • 477
  • 1
  • 7
  • 15
-1
votes
1 answer

how to make excel solver give same output each time when there are multiple solutions

I have developed an excel macro one that runs a solver at the supplier site and another at the client. The constraint conditions are created on the fly based on user input. However for more than one solutions I am getting a different answer. What…
norbdum
  • 2,361
  • 4
  • 19
  • 23
-1
votes
1 answer

Price Optimization in R

I need help in a price model optimization. I am trying to maximize Sale based on several conditions.I have already done optimization in Excel using solver(GRG Nonlinear) but want to do in R since solver has limitations(Microsoft Excel Solver has a…
-1
votes
1 answer

Matlab Genetic Algorithm for a non-genetic case

I've never used optimization tools, but I think I have to use now, so I'm a bit lost. After using the answer given by @A. Donda, I have noticed that maybe that is not the best solution because every time I run the function it gives a different…
-1
votes
1 answer

Packing Circles inside a Circle

Given unit circle, and a set of M smaller circles of radius r. Find the maximum radius of the smaller circles that allows them all to fit inside the unit circle without overlap. I have the following circles packing in polygon example link I want…
-2
votes
1 answer

How to calculate the error in fsolve python like resnorm in python?

I need to calculate the error in each iteration at solving a system of equation non-linear with fsolve in python, like resnorm of fsolve in MATLAB. Someone can help me if it's possible in python?
every1
  • 1
  • 1
-2
votes
1 answer

Solve System of Non-Linear Equations with Function on Several Arguments

I want to solve a system of non-linear equation by modifiying the "x" argument on the function shown below. The other arguments do not need to be modified. How can I tell python to keep fixed all arguments except for "x"? def equations(L, N, tu, x,…
-2
votes
3 answers

Solving Non-linear equations

I need to return the two coordinates of intersection between a circle: f[0] = (x-h)^2 + (y-k)^2 -r^2 And a line: f[1] = y - y1 - m*(x - x1) I have tried using fsolve, but I cannot pass the variables for (h,k,r,x1,y1), which I have. Is there a…
AHB1997
  • 1
  • 2
-2
votes
1 answer

C#: solving Non-linear system using Microsoft solver

Using Microsoft Solver Foundation, I have only solved linear problem so far. I'm now trying to solve a very simple non-linear problem but for some reasons, Microsoft solver cannot solve it. The problem is maximising a0*a1 , with a0<10 and a1<20…
jbf
  • 1
  • 2
-2
votes
1 answer

Does Z3 gives the maximum value for summation

I am using Z3 to solve an optimization problem. the objective is to maximize the value of a variable, call it X, X is the summation of: X = x1+x2+x3+x4+...+xi each term form x1 to xi represents a non-linear equation. So, I can't use the…
Rehab11
  • 483
  • 2
  • 7
  • 16
-2
votes
1 answer

set an vector as outpot, nlopt

I want to use NLopt for my nonlinear optimization problem. I test the sample code in tutorial page enter link description here, C++ example. It works good. But the function I want to minimize should a return a vector. Which is, in the tutorial page…
-3
votes
1 answer

How to optimize nonlinear funtion with some constraint in c++

I want to find a variable in C++ that allows a given nonlinear formula to have a maximum value in a constraint. It is to calculate the maximum value of the formula below in the given constraint in C++. You can also use the library.(e.g.…
-3
votes
1 answer

Which optimization techniques can I use for maximizing the sum of minimum distance of each point to other points in a unit hypercube?

Let's say I have the following unit hypercube with 9 points My goal is to maximize this function: In the image, Figure 1 is the original data, Figure 2 is computed using the function, and Figure 3 is the optimized function. I want to know how can…
1 2 3
62
63