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
0
votes
1 answer

How to display an image with SVG in FICO Xpress Workbench

I'm working to generate an SVG image to represent a graph. For each node, I would like to display an image. As written in the documentation, to use an image, I need to use svgaddfile and svgaddimage. I wrote this code (I copy only the interesting…
xcesco
  • 4,690
  • 4
  • 34
  • 65
0
votes
1 answer

abs and mpvar^integer error in Xpress mosel

This is my code and: this is error statement of code. How can I solve those errors?
0
votes
1 answer

How to use Fico Xpress (Mosel) with Java?

I have created an optimization model with Xpress and now I want to access it via my Java code. On the official Xpress Help page (https://www.fico.com/fico-xpress-optimization/docs/dms2019-01/mosel/UG/dhtml/moselugC2_sec_secc2java.html) it said to…
0
votes
1 answer

FICO Xpress Workbench won't work due to OS Catalina, produced error "spawn mosel ENOENT"

I have a bit of a technical question here. Since upgrading to OS Catalina I have tried running my Xpress Workbench files and a warning pops up saying "It can't be opened because Apple cannot check for malicious software." When bypassing this and…
Yorky
  • 27
  • 8
0
votes
1 answer

Who to create a dynamic array and resize it in Mosel Xpress IVE?

I'm trying to create a dynamic array with size 5 ( x : dynamic array(5) of integer), i initialize array with x(1)=1,x(2)=4,x(3)=1,x(4)=2,x(5)=3. Thanks to that I want to solve a problem. Then, in the same programme, I want to increase the die size…
0
votes
0 answers

E-1100: Empty Model when using XPRESS (Mosel)

I'm building an optimisation model using FICO XPRESS for a project. The code runs fine up until the minimize(obj) line when I get error E-1100: Empty Problem. It seems to come down to the constraints not being recognised as constraints. The…
Andy
  • 1
0
votes
2 answers

Mosel Iterations - Clean Memory

I am trying to optimize a model for 250 different price scenarios using a loop. At the beginning, XPRESS can handle 5 scenarios within a minute, but then the memory starts to increase, the runs get slower and after 50 scenarios, XPRESS starts to…
0
votes
1 answer

Maximum number of inserts per transaction on SQL Server

Does anyone know how many INSERT commands per transaction SQL Server can handle at the same time? Basically, I'm building a long string with bunch of INSERT's (around 8000 INSERT commands, and each has around 600 characters) which then I will…
Carlitos Overflow
  • 609
  • 3
  • 13
  • 41
0
votes
1 answer

How to create & initialize record instances in FICO Xpress Mosel

I am trying to restructure some code in Mosel and use sets of records to represent the indices of sparse multi-dimensional arrays. I want to be able to populate my sets of records dynamically, so I can't use the initialisation stuff from a file or…
-1
votes
1 answer

Minimizing the months required to decommission a wind farm In a FICO Mosel Xpress IVE model

I am trying to find the most optimal way to decommission a wind farm, firstly based on minimising costs (which I've managed) and then by seeing what the minimum cost is with a limit to the months. Currently, I have 24 months, each with a cost…
-2
votes
1 answer

What's the idiomatic way to create temporary files in mosel?

I'm looking for something similar to the tempfile functions in R/Python: https://docs.python.org/3/library/tempfile.html https://www.rdocumentation.org/packages/base/versions/3.6.1/topics/tempfile Does this exist in Mosel?
logworthy
  • 1,218
  • 2
  • 11
  • 23
-3
votes
1 answer

XPRESS Mosel - Wrong logical operator

I am begginer at Xpress Mosel, i am trying to calculate a surplus = max(0;production-consumption) The production is calculated based on the power installed which is a decision variable. The model gives me an error : Wrong logical Operator. Please if…
1
2