Questions on optimization constrained to integer variables.

learn more… | top users | synonyms

0
votes
0answers
13 views

A good enough solution for the 0-1 multiple knapsack problem

Can you please explain, or point to an easy explanation of a good enough solution to the 0-1 multiple knapsack problem? This is a single constraint problem so only one-dimensional weights are to be ...
-1
votes
4answers
55 views

Can I find solutions to $a^4 + a^2 + a = b^2 + b$, $a,b \in \mathbb{Z}$ and $ 1 < a < b$?

I was wondering if anyone could point me in the correct direction for either finding a solution to my problem or proving that it does not exist. $$a^4 + a^2 + a = b^2 + b \;\text{ for }\; a,b \in ...
-2
votes
0answers
16 views

How would I get Maple to display all integer solutions to this system of inequalities? [closed]

I need to find all the integer solutions satisfying: $$20+x\geq0;\space2x+5y\geq;\space-x-2y\geq0.$$ I'm not sure which Maple functions would work and whatnot. A guy can only google this stuff for so ...
-1
votes
0answers
16 views

How to solve cardinality (number of non-zero elements) problem through convex optimization

So here is the problem: you wanna minimize the number of non-zero elements of a vector x through the following optimization : \begin{array}{ll} \text{minimize} & \mathop{\textrm{Card(x)}} \\ ...
0
votes
0answers
10 views

Wrong ILP solution with LPSolve (simple example)

I added the following example into LPSolve and found a strange issue. I don't want S1 and S2 to overlap within certain margins. ...
0
votes
1answer
51 views

Show both relaxations of boolean LP give equal lower bounds

Given the boolean LP: $$\text{Minimize}\;\; c^Tx$$ $$\text{Subject to}\;\; Ax \leq b$$ $$\hspace{57mm} x_i(1-x_i)=0\;\; i=1,...,n$$ Show that the LP relaxation: $$\text{Minimize}\;\; c^Tx$$ ...
0
votes
0answers
18 views

How is D.Knuth MMIX instruction MXOR useful for finite field multiplication?

Knuths TAOCP, Fascicle 1, exercise 37 (page 26) - http://mmix.cs.hm.edu/doc/fasc1.pdf: Explain how to use MXOR for arithmetic in a field of 256 elements; each element of the field should be ...
1
vote
0answers
20 views

How do you calculate Up and Down Penalties on a Branch and Bound algorithm of a MILP?

My notes really don't explain this clearly at all, so I have no idea what to do. If I have the following MILP: In which I've been told to solve it using: (a) Rule 1 (choose the variable with the ...
0
votes
0answers
7 views

Help on Binary Integer Programming

I am about to do a paper about distributing subjects to students with the constraints on: number of subjects that the student need, number of students whom these subjects will be distributed to, and ...
2
votes
0answers
21 views

What decides the structure of the dual variables taken in designing min-max type combinatorial optimization algorithms?

There are a bunch of combinatorial optimization problems like min cost flows and min weight perfect matchings that invoke duality and complimentary slackness to improve the primal feasible solution. ...
0
votes
0answers
11 views

Linearization bounds on 0-1 quadratic problems

What are the best linearization methods for approximating the following constrained 0-1 Quadratic problem, where $Q \in \mathbb{R}^{n\times n}$ and $k$ is an integer $1\leq k \leq n$ $$ \max ...
0
votes
0answers
42 views

Solution of a linearly constrained quadratic programming problem

What is the solution of the following optimization problem: \begin{align} &\min{\mathbf{p}^\mathrm{T} \mathbf{B} \mathbf{p}}\\ &\text{subject to}: \mathbf{0}\leq{\mathbf{p}}\leq \mathbf{1}. ...
1
vote
1answer
21 views

Job scheduling to minimise squared completion times using mixed 0-1 quadratic program

I have come across an Optimization question as follows: There are $n$ jobs that have to be processed on a machine. The machine can process only one job at a time. The time taken to process job ...
3
votes
3answers
198 views

How to divide natural number N into M nearly equal summands?

How to divide natural number N into M nearly equal summands? For example, to divide 20 by 13, in geometric representation, I should get How to generate the sequence above? What is the name of ...
2
votes
1answer
39 views

Description of a constraint for a mixed integer program.

Suppose we have 100 items that are labelled from the set $P = \{A, B, C, D, E\}$. My constraints are as follows: I want to choose exactly seven items. The choice should have at least one item of ...
0
votes
1answer
25 views

matlab MINLP optimization with ga

I have written a program for optimizing a set of generators. I have hourly price and cost data and need to figure out when a generator should run or just stay off. There are additional constraints but ...
0
votes
1answer
35 views

integer linear programing in matlab with the symbolic toolbox

I am writing a program to optimize a set of generators. I have hourly data and but dont want to necessarily optimize the whole time series. For a similar problem in the past I used the symbolic ...
0
votes
1answer
77 views

A binary min-max optimization problem

I encountered a very special optimization problem for a practical application. We have a variable $$\mathbf{s}=(s_1,s_2,s_3, s_4)^T$$, where $s_i$ can only take $1$ or $-1$, and we also have a ...
0
votes
0answers
25 views

Solution existence on $ax + by = c$

I have to produce an program which resolve the following equation: $ax + by = c$ With the following condition: $a$, $b$ and $c$ are known positive integer. $x$ and $y$ are positive ...
0
votes
1answer
42 views

Which algorithms are commonly used to solve this kind of Binary Integer Programming problem?

I want to solve the problem of minimizing $$\mathbf{c}^T\mathbf{x}$$ subject to the condition that $$A\mathbf{x} = \mathbf{b}\text{,}$$ where $\mathbf{b},\mathbf{c}$ are given vectors in ...
1
vote
2answers
28 views

How to find smallest integer which is greater than N positive primes

I know this can't be computed exactly, but I just need a rough estimate. I know one can compute a rough estimate of the number of primes less than N using the famous formula: ...
1
vote
2answers
50 views

Escaping from a point in linear programming

Is there a trick for explaining the following constraint as a set of linear (in)equalities? $$ \sum_{i=1}^n|x_i-a_i|>0, $$ where $a_i$'s are real constants.
11
votes
0answers
213 views

Determining information in minimum trials (combinatorics problem)

A student has to pass a exam, with $k2^{k-1}$ questions to be answered by yes or no, on a subject he knows nothing about. The student is allowed to pass mock exams who have the same questions as the ...
0
votes
1answer
24 views

One solution of a diophantine system

How to find one solution of $Ax = b$, where $A$ is a $(m, n)$ matrix and $x$ a vector of size $(n, 1)$. $A$, $x$ and $b$ are matrices of integers entries. How to check whether is a solution exists?
0
votes
1answer
21 views

Determine largest possible position for integers

I'm sorry if I'm not using the proper terminology but here's my question. When two numbers are multiplied, the position of the largest number can only be at the position of the sum of their operands. ...
1
vote
3answers
59 views

Is there any methods to solve for integer solution of a quadratic equation like $ax^2 + bx + c = 0$

Is there any method to solve for integer solution of a quadratic equation like following: $$ax^2 + bx + c = 0$$ where $a, b, c \in \mathbb{Z}$ If not is it possible for the Special case: ? $$x^2 -x ...
1
vote
2answers
43 views

Combinations of fruits and their “nutrients”

As a computer scientist and not a mathematician, I know not some of the formal language to describe my problem, so I'll present it in a word problem form. Maybe someone can help me hone my search and ...
1
vote
1answer
45 views

If-Then Constraint: If X < 4 Then T = 4 -X

All the generic If-then constraints do not seem to be gaining me any insight into this. I would like to form a mixed-integer program with Lingo which can minimize cost given that a series of: When ...
0
votes
1answer
33 views

Finding a sequences so the image approximates integers

$x$ is fixed in $[0,1]$, $a_n,b_n,c_n$ are integers and not all of them are $0$ $y(a_n,b_n,c_n) = a_n x^3 + b_n x^2 + c_n x = Y_n$ Find an algorithm to go from $(a_n,b_n,c_n)$ to ...
1
vote
1answer
63 views

Existence of graphs when given the degrees of all vertices

My question is: How to decide whether a graph is exist when given the degree sequence of all vertices? This question can be easily reduced to the {0,1}-solutions of integer linear equation ...
1
vote
0answers
50 views

Mixed-Integer Linear Programing : get the maximum constant associated to a non null variable

Does anyone know a way get the maximum constant associated to a non null variable using Mixed-Integer Linear Programing ? I would like to get the variable $a$ in this description : $$ i = 1,\ldots,m ...
1
vote
0answers
18 views

Can this specific Linear Program constraint be expressed? [duplicate]

Thanks for your time. I have a linear program and no idea how I could express a form of constraint and even if it's possible. Maybe someone here know a solution. A company assembly and sells a ...
1
vote
1answer
17 views

Some operation like determinant

we have determinant operation that is like below: $ det(\begin{bmatrix} a & b & c \\ d & e & f \\ g & h & i \\ \end{bmatrix}) $= $ (-1)^{1+1}a(ei-fh)+ ...
2
votes
0answers
51 views

How to find nonnegative solutions of a linear system?

I have a $M$ equation and $N$ variables like this : $ \begin{bmatrix} 3 & 0 & 1 & 0 & -1 & -3 & 2\\ 1 & 2 & 0 & 4 & 0 & 0 & -1\\ 1 & 1 & 0 ...
0
votes
0answers
10 views

Favorable probability(part 2)

After condition in Favorable probability . i should make an program in Python. I started in the next way: from random import randint import math MembersInBand = 50 ArrayOfMembers = [] for i in ...
0
votes
0answers
20 views

Why in the Uncapacitated Facility Location problem does each client not order all their goods from one location?

Here is the problem: A set of potential depot locations N = {1, . . . , n} has been identified. A set of clients M = {1, . . . , m} is known, each of which buys products that could be delivered from ...
0
votes
0answers
9 views

Ways to deal with Boolean constraint in optimization

For the optimization of $\text{min}_\alpha Q(\alpha)$, such that $\alpha_i \in \{0,1\}$, what will be popular way to deal with the Boolean constraint? Is there any methods to approximate the Boolean ...
2
votes
0answers
62 views

Algorithm to reduce expressions to canonical form

I'm writing a small computer algebra system that only knows rational numbers and all expressions that you can get from them by using basic arithmetic operations and powers. So the expressions are ...
1
vote
0answers
31 views

fill up a square with rectanagles

I have a square 46*46, I want to fill this up with three types of rectangles of size 29*20, 21*5, 10*4 such that the free space can be minimized? any rectangles can't be overlapped and they can be ...
1
vote
1answer
46 views

Integer Optimization

I have an integer optimization problem that I've been pondering for the last several days. Here's an abbreviated version: I have several wav song files with variable sizes (601201 kilobytes for ...
1
vote
1answer
31 views

Number of Integer solutions for this optimization problem

What is the number of integer solutions to the problem $$\sum_{i=1}^{i=k}x_i = n$$ subject to $\forall_i\ \ x_i \ge 0 $ note This should hold for both cases $k < n$ and $k \ge n$
1
vote
0answers
16 views

Find relationships between events

I have a set of Events $(E_i)_i$ which have a probability $(P_i)_i$. I am able to write each event as a sum of distinct events that form a partition of the space. My goal is to find all the ...
0
votes
0answers
31 views

Devising objective function for integer linear programming

I am working to devise a objective function for a integer linear programming model. The goal is to determine the copy number of two genes as well as if a gene conversion event has happened (where one ...
0
votes
0answers
45 views

Finding the optimal solution to an ILP, when feasibility is not ultimately required

I have the following problem: I would like to solve an ILP with binary variables, i.e. I have a set of possible items, each having properties like "size" "weight" "value" "age" and so on, in total, ...
1
vote
2answers
50 views

$a^2-b^2 = k$, $ab = l$ for fixed integer $k,l$ when $a,b$ are both integers

Let us fix integers $k,l$. Let all numbers be integers. Now we want integer $a,b$ to satisfy: $$a^2-b^2 = k, \,\,\,2ab = l.$$ We want to maximize the number of possible $(a,b)$. In order to do ...
0
votes
1answer
50 views

How to minimize the square of $\sum b_i x_i$ where each $b_i$ can be either $0$ or $1$?

Would you please help me solve the following problem where $b_{ij}$ is my decision variable that must be determined and all other parameters are known. $$\min \left(\sum_{i=1}^n b_i x_i\right)^2$$ ...
0
votes
1answer
31 views

Can there be a unique natural number vector solution to $Ax =b$ where $A$ is not a specific type of square matrix?

Let $A$ be $(n-1) \times n$ matrix that is of the following form: $$\left( \begin{array}{ccc} n-1 & 1 & 0 &.... & ....\\ 0 & n-2 & 2 & .... & ....\\ 0 & 0 & n-3 ...
0
votes
2answers
23 views

Determine page number for question based on count of questions and number of questions per page

I'm trying to build a simple quiz, and I want to split up the questions into pages. However, the number of questions and pages can change based on a few parameters, most important is a variable number ...
1
vote
2answers
96 views

Free solvers in C/C++ for convex integer programming

I need to solve the following integer program: $\text{minimize } \sum_{i=1}^n(a_{i0} x_i + \sum_{k=1}^3 a_{ik}w_i^k + \sum_{j=1}^m d_{ij}y_{ij})$ $\text{subject to}$ $$ \sum_{i=1}^n y_{ij}=1, \quad ...
2
votes
1answer
40 views

Question about making a custom 'formula'

I am working on some program for myself, and I am stuck on one thing, which I am not sure how to make exactly, I do know how to calculate it manually on paper, but I don't know any kind of formula or ...