Questions tagged [mosel]

"Mosel" can refer to either the Mosel modelling environment as a whole, or the extensible hybrid modelling/programming language which is part of it.

"Mosel" can refer to either the Mosel modelling environment as a whole, or the extensible hybrid modelling/programming language which is part of it.

Some features of the programming language include:

  • Variables
  • Data types and data structures (such as sets, lists and arrays)
  • Common control flow statements (such as loops and selections)

It is compiled and optimised, and modules (written in C/C++) can extend the language functionality.

27 questions
2
votes
1 answer

Infinite minimization with mmxnlp module

I'm studying nonlinear optimization on Xpress Mosel with mmxnlp module. How to do infinite minization to find better local minimum on every step? Only so?: while (true) do minimize(Obj) writeln(X.sol) copysoltoinit end-do
sdio
  • 21
  • 3
1
vote
1 answer

How to print results in Mosel

I am attempting to create a mosel model that takes data from an excel file and concerns energy demand for 20 regions. Each region has 3 possible alternatives corresponding to the kind of energy centrals we're considering in the model and a maximum…
1
vote
1 answer

Solving several problems concurrently with multithreaded application and XPRESS solver

I am trying to convert a single threaded application that uses Fico Xpress solver to have it solve several problems concurrently with OpenMP. The licensing method that I am using is limited to 1 process, so a multithreaded program should theorically…
wtf8_decode
  • 452
  • 6
  • 19
1
vote
1 answer

Squaring A Decision Variable in Mosel

in my problem, I want to minimize the sum of the square of a decision variable * LARGE_CONSTANT. The reason for square is to incentivize the solver to spread the decision variable around equally; if I have to use the panic variables, I want to use…
1
vote
2 answers

Incompatible types for operator with Mosel

I'm starting to use Xpress Fico workbench. I was trying to define a simple model in a model file in this way: model ModelName options noimplicit uses "mmxprs" ! uses "mminsight" ! uncomment this line for an Xpress Insight model …
xcesco
  • 4,690
  • 4
  • 34
  • 65
1
vote
1 answer

Fico Xpress / Mosel: Constraint not satisfied in optimal solution

Consider the following minimization problem: declarations A,B,C: range Objective:linctr ct1: array(a,b,c) of linctr ct2: linctr z: array (a,b,c) of real x: array (a,b,c) of mpvar end-declarations initializations …
Mike Lang
  • 65
  • 5
1
vote
1 answer

Syntax for Mosel PREINTSOL callbacks?

I'm new to Xpress Mosel after working with CPLEX with quite some time. I want to solve a vehicle routing problem with callbacks in Mosel and Xpress natively. model VRPSPD uses "mmxprs", "mmsystem", "mmsheet" forward procedure…
Layla
  • 125
  • 10
0
votes
1 answer

Why does my model ignore a linear constraint?

I have an Xpress IVE linear programming model whose objective is to maximise the profit from producing and selling energy for a fictitious company. One of the sources of energy is hydro. There is a reservoir with max capacity, so within the model we…
0
votes
1 answer

Dynamic number of indices in Xpress

I want to have a variable where depending on the use cases may have different number of indices. That is in some cases, the variable may be of the form V: array(set of string, set of string) of mpvar, while in some other cases, it may be V:…
Hung H
  • 1
0
votes
1 answer

Xpress Mosel Parallel Solving

Is it possible to have two submodles (.mos) running in parallel as input data for a master problem? Is it correct to repeat twice the next code, one for each sub model? Because I have one bim file for each sub model, in my case 2 bim…
Ana Vaz
  • 1
  • 1
0
votes
1 answer

How Can I declare constraints in Xpress IVE?

I am trying to write a model in Xpress IVE however I got error101: Incompatible types for operator ('mpvar' * 'mpvar' not defined). error. I tried to write this constraint but I couldn't make it. The two consecutive characters on the string must be…
0
votes
1 answer

Indexing variables in sets in Xpress Mosel

I'm trying to solve a linear relaxation of a problem I've already solved with a Python library in order to see if it behaves in the same way in Xpress Mosel. One of the index sets I'm using is not the typical c=1..n but a set of sets, meaning I've…
0
votes
1 answer

I defined d as a binary variable but the solution is continuous variable between 0 and 1 in xpress mosel

I tried to model integer programming but even though i declare d and v as a binary variable it gave me continuous variable between 0 and 1. Could someone look it? Thanks in advance declarations !Ranges row = 1..7 column = 1..7 colors…
0
votes
1 answer

(FICO Xpress) Is it possible to specify the number of positive and negative results I would like to get via constraints?

I am currently trying to create a model where the results of the objective function when applied to all rows in the problem will be used for recommendation purposes. …
0
votes
1 answer

Xpress Mosel returning zeroes for all rows

I am an absolute beginner at Xpress Mosel and Linear Programming in general so please forgive me if I made any obvious mistakes. That being said, I am currently in the process of making up a problem and implementing it in Xpress Workbench. The…
1
2