Skip to main content

Questions tagged [matlab]

For questions about solving Operations Research problems using Matlab programming language.

2 votes
1 answer
38 views

How to generate random bounded polytope by MATLAB defined by Ax=b, x≥0

How can one create a random bounded polytope in MATLAB, specified by the conditions $‎\lbrace‎x:~ Ax = b,~ x \geq 0‎\rbrace‎$
Optimization Online's user avatar
0 votes
0 answers
21 views

the Shannon entropy of a radar matrix

Now,I have a 2D radar spectrum data,which is obtained from 2D FFT along fast time and angle dimension at one range and azimuth coordinate points and its neighbor several different range and azimuth ...
Zoe's user avatar
  • 9
0 votes
0 answers
71 views

is it possible to improve the solution process of an MILP?

I am trying to optimize a charging station for EVs in matlab with intlinprog, which is connected to a PV-Modul, to an system storage systeme and to the network grid. I am using different Storage ...
tun24's user avatar
  • 11
0 votes
1 answer
100 views

Mixed Integer Programming - How to model a term in objective function with a constant multiplied by (1-Decision Variable)

I am solving an optimization problem, where I want to minimize the objective function $$Z = \sum_q \left(D_q \text{fare}_q - \sum_{p \ne q} \Delta D^p_q \text{fare}_q \right) (1-Z_q)$$ Each $q$ is an ...
Eslam Mahmoud's user avatar
1 vote
1 answer
81 views

Solving stochastic dynamic problem by space state MATLAB program

I have a maximization problem as shown in the picture below. The output has a common shock z that follows a two-state Markov chain with a transition matrix Π. Does anyone know how I would go about ...
Julia's user avatar
  • 11
6 votes
8 answers
3k views

Ideal programming language for an operations researcher

No single programming language will meet every need. However, there should be a language that most operations research scientists prefer to master. I have coded different algorithms in Matlab and ...
mdslt's user avatar
  • 615
5 votes
2 answers
584 views

Transform nonlinear cost function to get LP or MILP

I'm trying to schedule power of multiple prosumers in a microgrid. The problem includes a cost function with min and max ...
Daniel Stich's user avatar
2 votes
0 answers
64 views

Where is the relative gap from cplexbilp?

I am invoking cplexbilp (CPLEX 12.9) from Matlab R2022a. I request all 4 return arguments: ...
user2153235's user avatar
2 votes
0 answers
77 views

Determining the number of nodes within a cycle for an MILP problem

I have a MILP problem that requires knowing the number of nodes within a cycle (there will be multiple depending on inputs). I believe this will involve tracing nodes/values within cycles using the ...
user9899's user avatar
2 votes
0 answers
135 views

Defining a highly non-linear function of integer variables

I have a complicated non-linear objective function of positive integer variables subject to linear constraints: $\mathop {Min}\limits_{\underline x} f(\underline x)$ s.t. $A\underline x\leq \underline ...
Johnthemathematician's user avatar
2 votes
1 answer
57 views

Is it possible to change the underlying field from Euclidean to $\mathbb{F}_p$?

I have an ILP $Ax=b$ that I know has feasible solution(s), and I would like to find a/all feasible solution(s). The issue is that $A,x,b$ are defined over $\mathbb{F}_p$. More specifically, I need the ...
AyamGorengPedes's user avatar
0 votes
2 answers
410 views

How to normalize the objective functions of multi-objective optimization for a MPC?

I have a MPC with two objective functions, one that minimises fuel consumption and one that minimises the travel time of a vessel. I want to combine these two objectives into one weighted objective, ...
Laurens Pierik's user avatar
0 votes
1 answer
101 views

lsqcurvefit error in simulation of demands in MATLAB

I want to simulate the demand of a factory. This is not a real problem, the demand follows this relation $D= AB^2C^3$ where $A$, $B$ and $C$ have normal distributions: $$A\sim N(10,2.5),\quad B\sim(6,...
ramin's user avatar
  • 55
6 votes
1 answer
575 views

What underlies intlinprog in MATLAB?

When a paper says they used the intlinprog in MATLAB to solve an integer program, what system actually does the solving? I have seen documentation about Gurobi and MATLAB: does Gurobi always provide ...
Michael Trick's user avatar
1 vote
0 answers
78 views

Create randomly an undirected connected graph using Matlab [closed]

I want to create randomly an undirected connected graph $G=(V,E)$ with $n$ nodes and $m$ edges using Matlab. How can I do this?
DSPinfinity's user avatar

15 30 50 per page