I figured out the problem. There's a Configuration option on the Property page. I had inadvertently selected Release and should have selected Degub.
Search found 71 matches
- Sat Feb 04, 2017 6:06 pm
- Forum: SMILE
- Topic: Using SMILE with Visual Studio 2015 C++
- Replies: 11
- Views: 252216
- Fri Feb 03, 2017 8:28 pm
- Forum: SMILE
- Topic: Using SMILE with Visual Studio 2015 C++
- Replies: 11
- Views: 252216
Re: Using SMILE with Visual Studio 2015 C++
Yes. I tried this both ways: in VC++ Directories and in C/C++ General.
I'll chalk this up to either a Visual Studio bug or in my inability to use Visual Studio. It's not holding me up. It's just inconvenient.
I'll chalk this up to either a Visual Studio bug or in my inability to use Visual Studio. It's not holding me up. It's just inconvenient.
- Fri Feb 03, 2017 11:47 am
- Forum: SMILE
- Topic: Using SMILE with Visual Studio 2015 C++
- Replies: 11
- Views: 252216
Re: Using SMILE with Visual Studio 2015 C++
For some reason this stopped working. I can't get VS to find include files. I'm having to resort to putting them in the project code folder.
VS works fine for projects I've already created. It stopped working for new projects.
VS works fine for projects I've already created. It stopped working for new projects.
- Sun Jan 22, 2017 7:35 pm
- Forum: GeNIe
- Topic: Testing Diagnosis -- Propagating Evidence
- Replies: 0
- Views: 23694
Testing Diagnosis -- Propagating Evidence
I have a network that represents an electronic device. I've modeled all the conceivable failure causes and modes. The network is set up with observation nodes, target nodes, and auxiliary nodes. Some of the observation nodes are Mandatory . When I run Testing diagnosis it first asks me to enter evid...
- Fri Jan 20, 2017 12:51 am
- Forum: SMILE
- Topic: Output Node Info to a CSV file
- Replies: 0
- Views: 24247
Output Node Info to a CSV file
I wrote a simple c++ program to create a CSV list of nodes and node info: // OutputCSVFromNetwork.cpp : main project file. #include "stdafx.h" #include "smile.h" #include <iostream> using namespace std; int main() { DSL_network theNet; theNet.ReadFile("BBNetwork.xdsl");...
- Fri Jan 13, 2017 2:22 am
- Forum: GeNIe
- Topic: Chance vs Deterministic Nodes
- Replies: 3
- Views: 3861
Re: Chance vs Deterministic Nodes
The same answer would then hold for Noisy-Max nodes and CPT.
If I'm creating Noisy-Max nodes they end up being represented as CPTs. There's no advantage to creating them as CPTs in the first place.
(Which means I'd go with Noisy-Max since they're so much easier to set up.)
If I'm creating Noisy-Max nodes they end up being represented as CPTs. There's no advantage to creating them as CPTs in the first place.
(Which means I'd go with Noisy-Max since they're so much easier to set up.)
- Thu Jan 12, 2017 12:29 am
- Forum: GeNIe
- Topic: Chance vs Deterministic Nodes
- Replies: 3
- Views: 3861
Chance vs Deterministic Nodes
I have created a network with Chance nodes whos CPT's are all 1's and 0's.
Is there any computational advantage to using Deterministic nodes in this instance?
Is there any computational advantage to using Deterministic nodes in this instance?
- Thu Dec 29, 2016 2:18 am
- Forum: SMILE
- Topic: Get nodes & submodel in a submodel
- Replies: 1
- Views: 2956
Get nodes & submodel in a submodel
Is there a way to get a list of nodes and submodels that are in a submodel?
I looked through various properties and methods, especially in:
I didn't find anything intuitively obvious.
I looked through various properties and methods, especially in:
Code: Select all
theNet.GetSubmodelHandler().GetSubmodel(submodelHandle
- Thu Dec 29, 2016 2:06 am
- Forum: SMILE
- Topic: Setting node colors
- Replies: 2
- Views: 3827
Re: Setting node colors
It looks like the Red and Blue colors are reversed. If I display the network in Genie I see:
R - 195
G - 143
B - 62
The correct color is:
R - 62
G - 143
B - 195
R - 195
G - 143
B - 62
The correct color is:
R - 62
G - 143
B - 195
- Thu Dec 29, 2016 2:03 am
- Forum: SMILE
- Topic: Setting node colors
- Replies: 2
- Views: 3827
Setting node colors
I'm able to set node colors to a nice light pink with a darker pink border with this code: theNet.GetNode(observableNodeHandle)->Info().Screen().color = 0xeeb4e2; theNet.GetNode(observableNodeHandle)->Info().Screen().borderColor = 0x9d3b88; When I try this color however I should get blue node with a...
- Tue Dec 27, 2016 5:08 pm
- Forum: SMILE
- Topic: Using strings as arguments
- Replies: 1
- Views: 5552
Using strings as arguments
This works (for creating a node). string nodeId = "NewNode"; nodeHandle = theNet.AddNode(DSL_CPT, nodeID.c_str()); This doesn't (for creating a submodel). string submodelID = "NewSubmodel"; submodelHandle = theNet.GetSubmodelHandler().CreateSubmodel(DSL_MAIN_SUBMODEL, submodelID....
- Tue Dec 20, 2016 1:16 am
- Forum: SMILE
- Topic: GetStateNames
- Replies: 2
- Views: 3624
GetStateNames
I can use GetStateNames to retrieve strings from a CSV file:
How do I handle a blank cell in the CSV file?
(If I use this code it throws an exception.)
Code: Select all
string stringVar = GetStateNames(columnIndex[idx])[GetInt(columnIndex[idx], rec)].c_str())
(If I use this code it throws an exception.)
- Mon Dec 19, 2016 12:05 am
- Forum: SMILE
- Topic: Bar Chart Display
- Replies: 6
- Views: 14274
Bar Chart Display
I'd like to suggest a new feature.
I prefer to view networks with bar charts but can't enable that in SMILE.
Can you expose an API so I can do that?
(I'd also want to set the bar chart size.)
I can do this by editing the XML however, a SMILE API would be easier.
I prefer to view networks with bar charts but can't enable that in SMILE.
Can you expose an API so I can do that?
(I'd also want to set the bar chart size.)
I can do this by editing the XML however, a SMILE API would be easier.
- Mon Dec 12, 2016 1:26 am
- Forum: SMILE
- Topic: ReadFile Error
- Replies: 1
- Views: 3081
ReadFile Error
I discovered an interesting thing when reading a CSV file with ReadFile. I got the following error:
Can't read file, Unexpected endline in the quoted string
I created the CSV file with Excel. Some of the cells had multi-line data. When I changed the data to single-line the error went away.
Can't read file, Unexpected endline in the quoted string
I created the CSV file with Excel. Some of the cells had multi-line data. When I changed the data to single-line the error went away.
- Sun Nov 27, 2016 5:09 pm
- Forum: SMILE
- Topic: Using SMILE with Visual Studio 2015 C++
- Replies: 11
- Views: 252216
Re: Using SMILE with Visual Studio 2015 C++
You'll need to do the same for Library Directories . Visual Studio Properties VC Directories Library.JPG Follow the same instructions you did for the Include folder. When you're done with that click OK here. Visual Studio Properties VC Directories OK.JPG You can now #include smile.h in your code. Vi...